Jump to content
Fórum Script Brasil
  • 0

Sql


Felipem

Question

4 – Analisando os dados da Tabela1 abaixo:
Txn_id   Txn_date         Account_id   Txn_type_cd   Amount
1             2005-02-22   101                 CDT                 1000.00
2             2005-02-23   102                 CDT                 525.75
3             2005-02-24   101                 DBT                 100.00
4             2005-02-24   103                 CDT                 55
5             2005-02-25   101                 DBT                 50
6             2005-02-25   103                 DBT                 25
7             2005-02-25   102                 CDT                 125.37
8             2005-02-26   103                 DBT                 10
9             2005-02-27   101                 CDT                 75

 

a) Crie uma instrução SQL que crie uma tabela chamada BASE que contenha os dados Txn date 22 a 24 de Fevereiro de 2002 cujo o Amount entre 100 a 600, crie uma Flag 1 para CDT e 0 DBT.

-- SQL Server

 

 

 

 

 

b) Inclua na Tabela BASE incluindo os dados de 27 e 26 de Fevereiro.
Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148689
    • Total Posts
      644524
×
×
  • Create New...