Click here to Skip to main content
15,889,315 members
Home / Discussions / Database
   

Database

 
AnswerRe: Some Oracle Question Pin
scottgp23-Mar-09 10:20
professionalscottgp23-Mar-09 10:20 
GeneralRe: Some Oracle Question Pin
E_Gold23-Mar-09 10:51
E_Gold23-Mar-09 10:51 
GeneralRe: Some Oracle Question Pin
scottgp23-Mar-09 15:21
professionalscottgp23-Mar-09 15:21 
Questionwhat is mean by transaction in database? Pin
Ali_10023-Mar-09 7:04
Ali_10023-Mar-09 7:04 
Answertransaction as defined in Wikipedia Pin
David Mujica23-Mar-09 7:54
David Mujica23-Mar-09 7:54 
GeneralRe: transaction as defined in Wikipedia Pin
Ali_10023-Mar-09 10:26
Ali_10023-Mar-09 10:26 
GeneralROLLBACK Pin
David Mujica23-Mar-09 11:00
David Mujica23-Mar-09 11:00 
QuestionItem Stock detail using sale and purchase table [modified] Pin
adeelidrees23-Mar-09 2:36
adeelidrees23-Mar-09 2:36 
Hi dear,

This is my first post and want help from some one.

My question is below:

I have five tables with fields named below:

- purchase (*purchase_id, purchase_date, company_id)
- purchase-detail (purchase_id, qty, product_id, unit_id)
- sale (*sale_id, sale_date)
- sale-detail (sale_id, qty, company_id, product_id, unit_id))

Note - * represents primary key

(company_id, product_id, unit_id) makes one item.

I am creating a crystal report using vb.net 2008 and I have to create specific Item detail, in which date it is sold out , in which date it is purchased.

I have created crystal report 4 columns below in which data will be placed

Date(sale/purchase) | Purchase Quantity | Sale Quantity | Rem. Quantity
23/03/09                     | 300                          |                         | 300
24/03/09                     |                                 | 100                  | 200
25/03/09                     | 100                          | 200                  | 100


The above format will be used with different possibilities like above.

I have different and same dates in sale and purchase tables with different quantities for same date .

Please help me to solve this question . I am unable to create the queries.

Many thanks in Advance

modified on Monday, March 23, 2009 8:53 AM

QuestionSqlDataReader Number of Rows Pin
Jasmine Pomelo23-Mar-09 2:05
Jasmine Pomelo23-Mar-09 2:05 
AnswerRe: SqlDataReader Number of Rows Pin
Eddy Vluggen23-Mar-09 2:20
professionalEddy Vluggen23-Mar-09 2:20 
GeneralRe: SqlDataReader Number of Rows Pin
Jasmine Pomelo23-Mar-09 2:28
Jasmine Pomelo23-Mar-09 2:28 
GeneralRe: SqlDataReader Number of Rows Pin
Eddy Vluggen23-Mar-09 2:55
professionalEddy Vluggen23-Mar-09 2:55 
GeneralRe: SqlDataReader Number of Rows Pin
Jasmine Pomelo23-Mar-09 3:10
Jasmine Pomelo23-Mar-09 3:10 
GeneralRe: SqlDataReader Number of Rows Pin
Pete O'Hanlon24-Mar-09 2:20
mvePete O'Hanlon24-Mar-09 2:20 
AnswerRe: SqlDataReader Number of Rows Pin
tech60324-Mar-09 13:24
tech60324-Mar-09 13:24 
QuestionProblem with CASE statement in WHERE clause Pin
marijus523-Mar-09 1:49
marijus523-Mar-09 1:49 
AnswerRe: Problem with CASE statement in WHERE clause Pin
Ashfield24-Mar-09 2:27
Ashfield24-Mar-09 2:27 
GeneralRe: Problem with CASE statement in WHERE clause Pin
marijus524-Mar-09 5:33
marijus524-Mar-09 5:33 
GeneralRe: Problem with CASE statement in WHERE clause Pin
Ashfield24-Mar-09 10:31
Ashfield24-Mar-09 10:31 
GeneralRe: Problem with CASE statement in WHERE clause Pin
marijus524-Mar-09 13:24
marijus524-Mar-09 13:24 
GeneralRe: Problem with CASE statement in WHERE clause Pin
Ashfield24-Mar-09 22:12
Ashfield24-Mar-09 22:12 
GeneralDelete Duplicates in MySQL Pin
Brady Kelly22-Mar-09 23:36
Brady Kelly22-Mar-09 23:36 
GeneralRe: Delete Duplicates in MySQL Pin
Blue_Boy23-Mar-09 4:22
Blue_Boy23-Mar-09 4:22 
QuestionInstalling SQL Server 2005 Developer Edtion Pin
klaydze22-Mar-09 3:45
klaydze22-Mar-09 3:45 
AnswerRe: Installing SQL Server 2005 Developer Edtion Pin
Mycroft Holmes22-Mar-09 13:25
professionalMycroft Holmes22-Mar-09 13:25 

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.