Click here to Skip to main content
15,921,841 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using SQL with MS access Pin
Colin Angus Mackay28-May-05 21:52
Colin Angus Mackay28-May-05 21:52 
Generalhelp required Pin
virgo*28-May-05 11:42
virgo*28-May-05 11:42 
GeneralRe: help required Pin
Christian Graus28-May-05 12:17
protectorChristian Graus28-May-05 12:17 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:46
Colin Angus Mackay28-May-05 12:46 
GeneralRe: help required Pin
Colin Angus Mackay28-May-05 12:43
Colin Angus Mackay28-May-05 12:43 
GeneralRe: help required Pin
Christian Graus29-May-05 12:21
protectorChristian Graus29-May-05 12:21 
Generalsql query Pin
varun8027-May-05 2:40
varun8027-May-05 2:40 
GeneralRe: sql query Pin
Colin Angus Mackay27-May-05 10:13
Colin Angus Mackay27-May-05 10:13 
This reads like a homework question - and a badly written one at that.

So, I hope you'll understand that I'm not going to give you a solution, but I will do my best to nudge you along in the right direction.


varun80 wrote:
use table_3 to join between acct_num and acct_ref

So, table_3 is linked to table_1 through the acct_ref column
table_3 is also linked to table_2 through the acct_num column

varun80 wrote:
table_4 to join cusip and prod_hub

cusip and prod_hub don't exist so I'm guessing this is copied wrong.
I'm assuming that cusip == cus and prod_hub == prod_ref

table_4 is linked to table_1 through the prod_ref column
table_4 is also linked to table 2 through the cus column


varun80 wrote:
To identify where the qty is different from table1 & table2 & for which all accounts

table_1 and table_2 are related via table_3 - the joins you made earlier should show you how match the rows in table_1 with the corresponding row in table_2

Because table_1 has two qty columns (long_qty and short_qty) they will need to be added together to produce a value that is comparable to the Qty column in table_2


varun80 wrote:
please suggest the sql query to do so

As this looks suspciously like homework I'll decline that request - you won't learn anything if I do all the work for you. However, as I have said, I am quite happy to nudge you along in the right direction.

If you get stuck, post your workings to show where you got.

Good luck.


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralProblem related to the use of SQLDMO Pin
Prashant N.Rana26-May-05 22:19
Prashant N.Rana26-May-05 22:19 
GeneralRe: Problem related to the use of SQLDMO Pin
jonathan1526-May-05 22:39
jonathan1526-May-05 22:39 
GeneralRe: Problem related to the use of SQLDMO Pin
Prashant N.Rana29-May-05 17:41
Prashant N.Rana29-May-05 17:41 
GeneralInserting sql data Pin
NormBohana26-May-05 14:40
NormBohana26-May-05 14:40 
GeneralRe: Inserting sql data Pin
Colin Angus Mackay26-May-05 23:46
Colin Angus Mackay26-May-05 23:46 
GeneralMany to Many Relations Pin
mjackson1126-May-05 10:13
mjackson1126-May-05 10:13 
GeneralRe: Many to Many Relations Pin
Colin Angus Mackay26-May-05 23:50
Colin Angus Mackay26-May-05 23:50 
GeneralRe: Many to Many Relations Pin
mjackson1127-May-05 2:13
mjackson1127-May-05 2:13 
GeneralCrystal reports memory issue Pin
Jason Stamp25-May-05 23:32
Jason Stamp25-May-05 23:32 
GeneralRe: Crystal reports memory issue Pin
Lucy Kaplan26-May-05 0:20
Lucy Kaplan26-May-05 0:20 
GeneralRe: Crystal reports memory issue Pin
jonathan1526-May-05 1:43
jonathan1526-May-05 1:43 
GeneralRe: Crystal reports memory issue Pin
Anonymous26-May-05 3:37
Anonymous26-May-05 3:37 
GeneralRe: Crystal reports memory issue Pin
jonathan1526-May-05 3:44
jonathan1526-May-05 3:44 
Questionhow to setup the database? Pin
tudou25-May-05 21:24
tudou25-May-05 21:24 
AnswerRe: how to setup the database? Pin
Christian Graus28-May-05 12:18
protectorChristian Graus28-May-05 12:18 
GeneralDataset question Pin
Timothy_198225-May-05 20:20
Timothy_198225-May-05 20:20 
GeneralRe: Dataset question Pin
Christian Graus28-May-05 12:21
protectorChristian Graus28-May-05 12:21 

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.