update the abo solution
This commit is contained in:
parent
b4b9855fe7
commit
9fc60cf832
|
@ -1,64 +1,52 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Abo">
|
<SqlWorkbenchSqlProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Abo">
|
||||||
<Items>
|
<Items>
|
||||||
<LogicalFolder Name="Connections" Type="2" Sorted="true">
|
<LogicalFolder Name="Connections" Type="2" Sorted="true">
|
||||||
<Items>
|
<Items>
|
||||||
<ConnectionNode Name="WIN-10-SFR\SQL2016:WIN-LAPTOP\andreas">
|
<ConnectionNode Name="(local)\SQLEXPRESS:WIN-LAPTOP\andreas">
|
||||||
<Created>2017-03-09T18:45:47.4395012+01:00</Created>
|
<Created>2017-06-03T11:37:38.3249035+02:00</Created>
|
||||||
<Type>SQL</Type>
|
<Type>SQL</Type>
|
||||||
<Server>WIN-10-SFR\SQL2016</Server>
|
<Server>(local)\SQLEXPRESS</Server>
|
||||||
<UserName />
|
<UserName />
|
||||||
<Authentication>Windows Authentication</Authentication>
|
<Authentication>Windows Authentication</Authentication>
|
||||||
<InitialDB />
|
<InitialDB />
|
||||||
<LoginTimeout>15</LoginTimeout>
|
<LoginTimeout>15</LoginTimeout>
|
||||||
<ExecutionTimeout>0</ExecutionTimeout>
|
<ExecutionTimeout>0</ExecutionTimeout>
|
||||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
||||||
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
|
<ApplicationName />
|
||||||
</ConnectionNode>
|
</ConnectionNode>
|
||||||
<ConnectionNode Name="WIN-LAPTOP\SQLEXPRESS:WIN-LAPTOP\andreas">
|
</Items>
|
||||||
<Created>2017-03-11T08:58:56.8900889+01:00</Created>
|
</LogicalFolder>
|
||||||
<Type>SQL</Type>
|
<LogicalFolder Name="Queries" Type="0" Sorted="true">
|
||||||
<Server>WIN-LAPTOP\SQLEXPRESS</Server>
|
<Items>
|
||||||
<UserName />
|
<FileNode Name="create_tables.sql">
|
||||||
<Authentication>Windows Authentication</Authentication>
|
<AssociatedConnectionMoniker />
|
||||||
<InitialDB />
|
<AssociatedConnSrvName />
|
||||||
<LoginTimeout>15</LoginTimeout>
|
<AssociatedConnUserName />
|
||||||
<ExecutionTimeout>0</ExecutionTimeout>
|
<FullPath>create_tables.sql</FullPath>
|
||||||
<ConnectionProtocol>NotSpecified</ConnectionProtocol>
|
</FileNode>
|
||||||
<ApplicationName>Microsoft SQL Server Management Studio - Query</ApplicationName>
|
<FileNode Name="insert_data.sql">
|
||||||
</ConnectionNode>
|
<AssociatedConnectionMoniker />
|
||||||
</Items>
|
<AssociatedConnSrvName />
|
||||||
</LogicalFolder>
|
<AssociatedConnUserName />
|
||||||
<LogicalFolder Name="Queries" Type="0" Sorted="true">
|
<FullPath>insert_data.sql</FullPath>
|
||||||
<Items>
|
</FileNode>
|
||||||
<FileNode Name="create_tables.sql">
|
<FileNode Name="remove_tables.sql">
|
||||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:WIN-10-SFR\SQL2016:True</AssociatedConnectionMoniker>
|
<AssociatedConnectionMoniker />
|
||||||
<AssociatedConnSrvName>WIN-10-SFR\SQL2016</AssociatedConnSrvName>
|
<AssociatedConnSrvName />
|
||||||
<AssociatedConnUserName />
|
<AssociatedConnUserName />
|
||||||
<FullPath>create_tables.sql</FullPath>
|
<FullPath>remove_tables.sql</FullPath>
|
||||||
</FileNode>
|
</FileNode>
|
||||||
<FileNode Name="insert_data.sql">
|
<FileNode Name="select_statements.sql">
|
||||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:WIN-10-SFR\SQL2016:True</AssociatedConnectionMoniker>
|
<AssociatedConnectionMoniker />
|
||||||
<AssociatedConnSrvName>WIN-10-SFR\SQL2016</AssociatedConnSrvName>
|
<AssociatedConnSrvName />
|
||||||
<AssociatedConnUserName />
|
<AssociatedConnUserName />
|
||||||
<FullPath>insert_data.sql</FullPath>
|
<FullPath>select_statements.sql</FullPath>
|
||||||
</FileNode>
|
</FileNode>
|
||||||
<FileNode Name="remove_tables.sql">
|
</Items>
|
||||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:WIN-10-SFR\SQL2016:True</AssociatedConnectionMoniker>
|
</LogicalFolder>
|
||||||
<AssociatedConnSrvName>WIN-10-SFR\SQL2016</AssociatedConnSrvName>
|
<LogicalFolder Name="Miscellaneous" Type="3" Sorted="true">
|
||||||
<AssociatedConnUserName />
|
<Items />
|
||||||
<FullPath>remove_tables.sql</FullPath>
|
</LogicalFolder>
|
||||||
</FileNode>
|
</Items>
|
||||||
<FileNode Name="select_statements.sql">
|
|
||||||
<AssociatedConnectionMoniker>8c91a03d-f9b4-46c0-a305-b5dcc79ff907:WIN-LAPTOP\SQLEXPRESS:True</AssociatedConnectionMoniker>
|
|
||||||
<AssociatedConnSrvName>WIN-LAPTOP\SQLEXPRESS</AssociatedConnSrvName>
|
|
||||||
<AssociatedConnUserName />
|
|
||||||
<FullPath>select_statements.sql</FullPath>
|
|
||||||
</FileNode>
|
|
||||||
</Items>
|
|
||||||
</LogicalFolder>
|
|
||||||
<LogicalFolder Name="Miscellaneous" Type="3" Sorted="true">
|
|
||||||
<Items />
|
|
||||||
</LogicalFolder>
|
|
||||||
</Items>
|
|
||||||
</SqlWorkbenchSqlProject>
|
</SqlWorkbenchSqlProject>
|
|
@ -0,0 +1,18 @@
|
||||||
|
use Abo;
|
||||||
|
go
|
||||||
|
|
||||||
|
-- create a view
|
||||||
|
create view mitglieder_liste
|
||||||
|
as
|
||||||
|
select anrede.anrede,
|
||||||
|
mitglied.mitglied_vorname,
|
||||||
|
mitglied.mitglied_name
|
||||||
|
from mitglied inner join anrede
|
||||||
|
on mitglied.anrede_id = anrede.anrede_id;
|
||||||
|
|
||||||
|
-- query the view
|
||||||
|
|
||||||
|
use Abo;
|
||||||
|
go
|
||||||
|
|
||||||
|
select * from mitglieder_liste;
|
Reference in New Issue