Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 26th, 2011, 06:20 AM
maqza maqza is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 1 maqza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 58 sec
Reputation Power: 0
Subquery

HI!
i have two tables
vlnasshis

vlndte
ownbal
mktcde
symcde
fndcde
symhis

prcdte
mktprc
symcde
mktcde

vlnasshis
vlndte ownbal symcde mktcde fndcde
02-Aug-10 118976 2010 sa 200
15-Jun-10 129346 2010 sa 200
symhis
prcdte mktprc symcde mktcde
04-Aug-10 88.25 2010 sa
03-Aug-10 87.75 2010 sa
03-Jul-10 86 2010 sa
06-Jun-10 85 2010 sa

out put should be like this
as of 04-Aug-10
prcdte mktprc symcde mktcde vlndte ownbal
04-Aug-10 88.25 2010 sa 02-Aug-10 118976
as of 03-Jul-10

prcdte mktprc symcde mktcde vlndte ownbal
03-Jul-10 86 2010 sa 15-Jun-10 129346
Thanks in advance

Reply With Quote
  #2  
Old February 28th, 2011, 10:44 AM
June7's Avatar
June7 June7 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Location: The Great Land
Posts: 256 June7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 29 m 29 sec
Reputation Power: 8
Does not appear to be a common field in these tables to serve as primary/foreign keys. No way to join these records. What criteria relates these records?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Subquery


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap