Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
Questioncomplex SQL statement? Pin
giddy_guitarist30-Jul-06 23:06
giddy_guitarist30-Jul-06 23:06 
AnswerRe: complex SQL statement? Pin
Colin Angus Mackay30-Jul-06 23:36
Colin Angus Mackay30-Jul-06 23:36 
QuestionDelete Carriage Return Pin
oskardiazdeleon30-Jul-06 21:13
oskardiazdeleon30-Jul-06 21:13 
AnswerRe: Delete Carriage Return Pin
Eric Dahlvang31-Jul-06 3:37
Eric Dahlvang31-Jul-06 3:37 
QuestionCopy two xml doc in to a table in sql Pin
kalyan_vb30-Jul-06 17:43
kalyan_vb30-Jul-06 17:43 
AnswerRe: Copy two xml doc in to a table in sql Pin
tanya foster2-Aug-06 10:52
tanya foster2-Aug-06 10:52 
QuestionOffice Wob Components: PivotTable, SpreadSheet ... Pin
hamidreza_buddy30-Jul-06 4:22
hamidreza_buddy30-Jul-06 4:22 
Questionget the difference of two attributes in two tables Pin
00thilani29-Jul-06 20:23
00thilani29-Jul-06 20:23 
I have a table called "Issue" and table called "Receive"
and both have same attributes

they are "code,curr_val,date,coin_note,no_of_items,amount,operator_id,officer_id"And also code ,curr_val, and date are superkeys.

data types are char(8),datetime,char(1)if t is a coin c,if it is a note n,money,char(8),char(8)

I'm using sql server 2000

I want to
get the difference of currency values (ex no of $10notes,$50 notes).In other words I want to get the difference of Items in the "no_of items"attribute.




I tried toget notes value and no of notes items in receive table.

>SELECT curr_val,count(*)AS Items ,SUM (amount)AS Amount_Rs FROM RECEIVE AS R WHERE coin_note='n'GrOUP BY curr_val

I tried toget notes values and no of notes items in issue table


>SELECT curr_val,count(*)AS Items ,SUM (amount)AS Amount_Rs FROM ISSUE AS I WHERE coin_note='n'GrOUP BY curr_val .

What I want is the difference betveen the items values of R and I with their currency value

please help ASAP

Thanx
Thilani

AnswerRe: get the difference of two attributes in two tables Pin
Colin Angus Mackay29-Jul-06 22:53
Colin Angus Mackay29-Jul-06 22:53 
GeneralEmbeddable SQL database Pin
Jörgen Sigvardsson29-Jul-06 12:38
Jörgen Sigvardsson29-Jul-06 12:38 
GeneralRe: Embeddable SQL database Pin
S Douglas29-Jul-06 19:59
professionalS Douglas29-Jul-06 19:59 
GeneralRe: Embeddable SQL database [modified] Pin
Jörgen Sigvardsson30-Jul-06 0:06
Jörgen Sigvardsson30-Jul-06 0:06 
GeneralRe: Embeddable SQL database Pin
S Douglas30-Jul-06 21:14
professionalS Douglas30-Jul-06 21:14 
GeneralRe: Embeddable SQL database Pin
Jörgen Sigvardsson30-Jul-06 21:20
Jörgen Sigvardsson30-Jul-06 21:20 
GeneralRe: Embeddable SQL database Pin
S Douglas30-Jul-06 21:53
professionalS Douglas30-Jul-06 21:53 
GeneralRe: Embeddable SQL database Pin
Jörgen Sigvardsson30-Jul-06 22:12
Jörgen Sigvardsson30-Jul-06 22:12 
GeneralRe: Embeddable SQL database Pin
S Douglas5-Aug-06 6:50
professionalS Douglas5-Aug-06 6:50 
QuestionIncrease the speed when fetching bulk data from database using asp.net Pin
Ravi kumar G29-Jul-06 2:49
Ravi kumar G29-Jul-06 2:49 
AnswerRe: Increase the speed when fetching bulk data from database using asp.net Pin
Colin Angus Mackay29-Jul-06 9:03
Colin Angus Mackay29-Jul-06 9:03 
QuestionHow to avoid duplicate entries in DataTable. Pin
VenkataRamana.Gali28-Jul-06 21:16
VenkataRamana.Gali28-Jul-06 21:16 
QuestionReporting Services - PLEASE HELP! Pin
VK-Cadec28-Jul-06 7:52
VK-Cadec28-Jul-06 7:52 
AnswerRe: Reporting Services - PLEASE HELP! Pin
ToddHileHoffer28-Jul-06 8:10
ToddHileHoffer28-Jul-06 8:10 
GeneralRe: Reporting Services - PLEASE HELP! Pin
VK-Cadec28-Jul-06 8:14
VK-Cadec28-Jul-06 8:14 
GeneralRe: Reporting Services - PLEASE HELP! Pin
ToddHileHoffer28-Jul-06 8:18
ToddHileHoffer28-Jul-06 8:18 
GeneralRe: Reporting Services - PLEASE HELP! Pin
VK-Cadec28-Jul-06 8:27
VK-Cadec28-Jul-06 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.