If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > need help with some Simple queries :(

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-10, 03:35
suhas_sm suhas_sm is offline
Registered User
 
Join Date: Jul 2010
Posts: 1
need help with some Simple queries :(

1. I have two tables Invoice and Payment. Pay_no is foreign key in Invoice table. Now I want to make a view that say whether payment is made or not.

how can it be done ?

Thank you. Need help desperately
Reply With Quote
  #2 (permalink)  
Old 07-16-10, 14:01
Wise_Eye Wise_Eye is offline
Registered User
 
Join Date: Jul 2010
Posts: 5
Please list out the names and data types of each of the columns in both tables.
Reply With Quote
  #3 (permalink)  
Old 07-16-10, 14:51
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,455
Thumbs down Study

Quote:
Originally Posted by suhas_sm View Post
1. I have two tables Invoice and Payment. Pay_no is foreign key in Invoice table. Now I want to make a view that say whether payment is made or not.

how can it be done ?

Thank you. Need help desperately
Maybe you need to start studying your SQL 101 course and not ask for someone to do your homework.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #4 (permalink)  
Old 07-21-10, 02:51
waris_ariana waris_ariana is offline
Registered User
 
Join Date: Mar 2009
Location: Afghanistan
Posts: 1
Please list the Columns + datatypes of both tables individually to resolve.
Reply With Quote
  #5 (permalink)  
Old 07-25-10, 06:11
Ashique Raheem Ashique Raheem is offline
Registered User
 
Join Date: Jul 2010
Posts: 3
As you have defined a foreign key constraint and you require a view, it is better you understand the concept of JOINS and Views.

To provide an appropriate solution it would be helpful if you could list the structure of the two tables, and we may be able to help you

Regards
Ashique
Reply With Quote
  #6 (permalink)  
Old 07-26-10, 10:25
ninja_condom ninja_condom is offline
Registered User
 
Join Date: Jul 2010
Location: Kim Jong IL's Palace
Posts: 2
Please list the Columns and datatypes of both tables individually for resolution.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On