Em Andamento

SQL Server 2005 - create view or sp

I have two tables:

tblAccount_template

- AccountTemplateID

- AccountTemplateDescription

- AccountTemplateIDBase

tblAccount

- Account

- AccountDescription

- AccountTemplateID

I want you to create a view or sp which shows the following columns:

Account, AccountDescription, AccountTemplateID

So far it's easy but I also want the view or sp to show the accounts that belongs to AccountTemplateIDBase as if those are a part of the original AccountTemplate, for example:

tblAccount:

4010 | Account A | 1

4020 | Account B | 1

4030 | Account C | 1

5010 | Account D | 2

5020 | Account E | 2

5030 | Account F | 2

tblAccount_template:

1 | Template 1 | 2

2 | Template 2 | Null

In this case I want the output to be:

4010 | Account A | 1

4020 | Account B | 1

4030 | Account C | 1

5010 | Account D | 1

5020 | Account E | 1

5030 | Account F | 1

5010 | Account D | 2

5020 | Account E | 2

5030 | Account F | 2

Explanation:

AccountTemplateID 1 is based on AccountTemplateID 2 so all accounts from AccountTemplateID 1 and AccountTemplateID2 should be shown.

AccountTemplateID 2 doesn't have any AccountTemplateIDBase so only records from AccountTemplateID 2 should be shown.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

SQL Server 2005

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, SQL

Ver mais: sql server web, sql coder hire, view source, the view, hire sql, server case, sql run package, want view, easy view, output tables php, create exclusive, null software, sql coder, php form sql, web create account code, web form sql server, desktop sql, create seller account, 5010 4010, package sql server, create form sql server, work sql server, sql web site template, sql view, sql hire

Acerca do Empregador:
( 230 comentários ) Löddeköpinge, Sweden

ID do Projeto: #3017124

Premiar a:

f1mei0

See private message.

$10 USD em 1 dia
(52 Avaliações)
5.1

6 freelancers estão ofertando em média $17 para este trabalho

shebkhan2007

See private message.

$5.95 USD em 1 dia
(666 Comentários)
7.0
TakeRealUK

See private message.

$25.5 USD em 1 dia
(551 Comentários)
6.7
satyitz

See private message.

$8.5 USD em 1 dia
(64 Comentários)
5.7
neatcodersl

See private message.

$34 USD em 1 dia
(32 Comentários)
4.9
fabiao

See private message.

$34 USD em 1 dia
(25 Comentários)
4.7
kodandapani

See private message.

$10.2 USD em 1 dia
(8 Comentários)
2.2