Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,792| Members 17,821, Newest cdotkhn| Online 270
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Can't figure how to do a query

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
What Saint or Holy Figure Has Inspired You the Most? Narayanjot Kaur Interfaith Dialogues 2 25-Apr-2010 19:27 PM
Figure It Out For Yourself singhbj Inspirational Stories 1 17-Sep-2008 21:29 PM
Can pull up all quotes won How do I get total figure of all won Lisa Information Technology 1 28-Jul-2006 08:35 AM
Help me figure out what this db is doing in exchange for something Dtown Dawg Information Technology 4 28-Jul-2006 08:20 AM
Producing a new date depending on a figure Paul T Information Technology 1 18-Nov-2005 13:59 PM


Tags
figure, query
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:00 AM
Jones Barton's Avatar Jones Barton
Guest
 
Posts: n/a
   
   
Can't figure how to do a query

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi everybody,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9260-cant-figure-how-to-do-query.html
I am quite stumped on how to write a query. I have two tables that hold
securites for different periods I need to combine both into one table but the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
twist is that they can have different securities in each table. A short
example would be.

Table 1
Security 9/30/2005Market_value
IBM 1000
Microsoft 2000
XYZ 3000

Table 2
Security 12/31/2005Market_value
IBM 1500
Microsoft 2500
America Fund 3000

The results I would like would be

Table 1
Security 9/30/2005Market_value 12/31/2005Market_value
IBM 1000 1500
Microsoft 2000 2500
XYZ 3000
America Fund 3000


The tables show that XYZ was dropped after 9/31/2005 and America Funds was
brought in. I have struggled with this query for a couple of days. Any help
would be appreciated.

Jones








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:00 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Can't figure how to do a query

Sorry to seem blunt, but the problem is that your table isn't properly
normalized.

Each company should represent a separate row in a table, not a separate
column on a common row.

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
Jeff Conrad has a good set of resources related to table design at
http://home.bendbroadband.com/conrad...abaseDesign101

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Jones Barton" wrote in message
news:0F33898B-6B68-44E6-A321-D053D6B00F20@microsoft.com...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
> Hi everybody,
> I am quite stumped on how to write a query. I have two tables that hold
> securites for different periods I need to combine both into one table but

the
> twist is that they can have different securities in each table. A short
> example would be.
>
> Table 1
> Security 9/30/2005Market_value
> IBM 1000
> Microsoft 2000
> XYZ 3000
>
> Table 2
> Security 12/31/2005Market_value
> IBM 1500
> Microsoft 2500
> America Fund 3000
>
> The results I would like would be
>
> Table 1
> Security 9/30/2005Market_value 12/31/2005Market_value
> IBM 1000 1500
> Microsoft 2000 2500
> XYZ 3000
> America Fund 3000
>
>
> The tables show that XYZ was dropped after 9/31/2005 and America Funds was
> brought in. I have struggled with this query for a couple of days. Any

help
> would be appreciated.
>
> Jones
>
>
>
>
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:00 AM
Jones Barton's Avatar Jones Barton
Guest
 
Posts: n/a
   
   
Re: Can't figure how to do a query

Douglas,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260

I appreciate your honesty, With that being said, I don't have any control
on how I get the data, Is there any way to accomplish my hopeful outcome
with a query?

Jones

"Douglas J Steele" wrote:

> Sorry to seem blunt, but the problem is that your table isn't properly
> normalized.
>
> Each company should represent a separate row in a table, not a separate
> column on a common row.
>
> Jeff Conrad has a good set of resources related to table design at
> http://home.bendbroadband.com/conrad...abaseDesign101
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Jones Barton" wrote in message
> news:0F33898B-6B68-44E6-A321-D053D6B00F20@microsoft.com...
> > Hi everybody,
> > I am quite stumped on how to write a query. I have two tables that hold
> > securites for different periods I need to combine both into one table but

> the
> > twist is that they can have different securities in each table. A short
> > example would be.
> >
> > Table 1
> > Security 9/30/2005Market_value
> > IBM 1000
> > Microsoft 2000
> > XYZ 3000
> >
> > Table 2
> > Security 12/31/2005Market_value
> > IBM 1500
> > Microsoft 2500
> > America Fund 3000
> >
> > The results I would like would be
> >
> > Table 1
> > Security 9/30/2005Market_value 12/31/2005Market_value
> > IBM 1000 1500
> > Microsoft 2000 2500
> > XYZ 3000
> > America Fund 3000
> >
> >
> > The tables show that XYZ was dropped after 9/31/2005 and America Funds was
> > brought in. I have struggled with this query for a couple of days. Any

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
> help
> > would be appreciated.
> >
> > Jones
> >
> >
> >
> >
> >

>
>
>

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:01 AM
Douglas J. Steele's Avatar Douglas J. Steele
Guest
 
Posts: n/a
   
   
Re: Can't figure how to do a query

What are the names of the fields in your table? You might be able to write a
query that normalizes the data, and then use that query as the basis for
subsequent queries.

--
Doug Steele, Microsoft Access MVP
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
http://I.Am/DougSteele
(no private e-mails, please)


"Jones Barton" wrote in message
news:9FBA5373-CCB6-472D-A310-732D8E48D8D4@microsoft.com...
> Douglas,
>
> I appreciate your honesty, With that being said, I don't have any control
> on how I get the data, Is there any way to accomplish my hopeful outcome
> with a query?
>
> Jones
>
> "Douglas J Steele" wrote:
>
>> Sorry to seem blunt, but the problem is that your table isn't properly
>> normalized.
>>
>> Each company should represent a separate row in a table, not a separate
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
>> column on a common row.
>>
>> Jeff Conrad has a good set of resources related to table design at
>> http://home.bendbroadband.com/conrad...abaseDesign101
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no e-mails, please!)
>>
>>
>> "Jones Barton" wrote in message
>> news:0F33898B-6B68-44E6-A321-D053D6B00F20@microsoft.com...
>> > Hi everybody,
>> > I am quite stumped on how to write a query. I have two tables that
>> > hold
>> > securites for different periods I need to combine both into one table
>> > but

>> the
>> > twist is that they can have different securities in each table. A
>> > short
>> > example would be.
>> >
>> > Table 1
>> > Security 9/30/2005Market_value
>> > IBM 1000
>> > Microsoft 2000
>> > XYZ 3000
>> >
>> > Table 2
>> > Security 12/31/2005Market_value
>> > IBM 1500
>> > Microsoft 2500
>> > America Fund 3000
>> >
>> > The results I would like would be
>> >
>> > Table 1
>> > Security 9/30/2005Market_value 12/31/2005Market_value
>> > IBM 1000 1500
>> > Microsoft 2000 2500
>> > XYZ 3000
>> > America Fund 3000
>> >
>> >
>> > The tables show that XYZ was dropped after 9/31/2005 and America Funds
>> > was
>> > brought in. I have struggled with this query for a couple of days.
>> > Any

>> help
>> > would be appreciated.
>> >
>> > Jones
>> >
>> >
>> >
>> >
>> >

>>
>>
>>



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:01 AM
Jones Barton's Avatar Jones Barton
Guest
 
Posts: n/a
   
   
Re: Can't figure how to do a query

Hi Douglas

In each table I have Fields named History_dte (date), Manager_long, Entity,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
Asset_Class, TotalMv
one table has 12/31/2005 data the other 09/30/2005 data in it.


Jones

"Douglas J. Steele" wrote:

> What are the names of the fields in your table? You might be able to write a
> query that normalizes the data, and then use that query as the basis for
> subsequent queries.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Jones Barton" wrote in message
> news:9FBA5373-CCB6-472D-A310-732D8E48D8D4@microsoft.com...
> > Douglas,
> >
> > I appreciate your honesty, With that being said, I don't have any control
> > on how I get the data, Is there any way to accomplish my hopeful outcome
> > with a query?
> >
> > Jones
> >
> > "Douglas J Steele" wrote:
> >
> >> Sorry to seem blunt, but the problem is that your table isn't properly
> >> normalized.
> >>
> >> Each company should represent a separate row in a table, not a separate
> >> column on a common row.
> >>
> >> Jeff Conrad has a good set of resources related to table design at
> >> http://home.bendbroadband.com/conrad...abaseDesign101
> >>
> >> --
> >> Doug Steele, Microsoft Access MVP
> >> http://I.Am/DougSteele
> >> (no e-mails, please!)
> >>
> >>
> >> "Jones Barton" wrote in message
> >> news:0F33898B-6B68-44E6-A321-D053D6B00F20@microsoft.com...
> >> > Hi everybody,
> >> > I am quite stumped on how to write a query. I have two tables that
> >> > hold
> >> > securites for different periods I need to combine both into one table
> >> > but
> >> the
> >> > twist is that they can have different securities in each table. A
> >> > short
> >> > example would be.
> >> >
> >> > Table 1
> >> > Security 9/30/2005Market_value
> >> > IBM 1000
> >> > Microsoft 2000
> >> > XYZ 3000
> >> >
> >> > Table 2
> >> > Security 12/31/2005Market_value
> >> > IBM 1500
> >> > Microsoft 2500
> >> > America Fund 3000
> >> >
> >> > The results I would like would be
> >> >
> >> > Table 1
> >> > Security 9/30/2005Market_value 12/31/2005Market_value
> >> > IBM 1000 1500
> >> > Microsoft 2000 2500
> >> > XYZ 3000
> >> > America Fund 3000
> >> >
> >> >
> >> > The tables show that XYZ was dropped after 9/31/2005 and America Funds
> >> > was
> >> > brought in. I have struggled with this query for a couple of days.
> >> > Any
> >> help
> >> > would be appreciated.
> >> >
> >> > Jones
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>

>
>
>

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:01 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Can't figure how to do a query

  Donate Today!  
Sorry: I don't see how that table definition relates to the sample data
you've given!

How about showing a few sample rows from each table?

Are you saying the data is coming to you from an external source, and that's
why there are two separate tables?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Jones Barton" wrote in message
news:836414E3-5EB9-439C-9499-870DF089B12D@microsoft.com...
> Hi Douglas
>
> In each table I have Fields named History_dte (date), Manager_long,

Entity,
> Asset_Class, TotalMv
> one table has 12/31/2005 data the other 09/30/2005 data in it.
>
>
> Jones
>
> "Douglas J. Steele" wrote:
>
> > What are the names of the fields in your table? You might be able to

write a
> > query that normalizes the data, and then use that query as the basis for
> > subsequent queries.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no private e-mails, please)
> >
> >
> > "Jones Barton" wrote in message
> > news:9FBA5373-CCB6-472D-A310-732D8E48D8D4@microsoft.com...
> > > Douglas,
> > >
> > > I appreciate your honesty, With that being said, I don't have any

control
> > > on how I get the data, Is there any way to accomplish my hopeful

outcome
> > > with a query?
> > >
> > > Jones
> > >
> > > "Douglas J Steele" wrote:
> > >
> > >> Sorry to seem blunt, but the problem is that your table isn't

properly
> > >> normalized.
> > >>
> > >> Each company should represent a separate row in a table, not a

separate
> > >> column on a common row.
> > >>
> > >> Jeff Conrad has a good set of resources related to table design at
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
> > >>

http://home.bendbroadband.com/conrad...abaseDesign101
> > >>
> > >> --
> > >> Doug Steele, Microsoft Access MVP
> > >> http://I.Am/DougSteele
> > >> (no e-mails, please!)
> > >>
> > >>
> > >> "Jones Barton" wrote in

message
> > >> news:0F33898B-6B68-44E6-A321-D053D6B00F20@microsoft.com...
> > >> > Hi everybody,
> > >> > I am quite stumped on how to write a query. I have two tables that
> > >> > hold
> > >> > securites for different periods I need to combine both into one

table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9260
> > >> > but
> > >> the
> > >> > twist is that they can have different securities in each table. A
> > >> > short
> > >> > example would be.
> > >> >
> > >> > Table 1
> > >> > Security 9/30/2005Market_value
> > >> > IBM 1000
> > >> > Microsoft 2000
> > >> > XYZ 3000
> > >> >
> > >> > Table 2
> > >> > Security 12/31/2005Market_value
> > >> > IBM 1500
> > >> > Microsoft 2500
> > >> > America Fund 3000
> > >> >
> > >> > The results I would like would be
> > >> >
> > >> > Table 1
> > >> > Security 9/30/2005Market_value

12/31/2005Market_value
> > >> > IBM 1000 1500
> > >> > Microsoft 2000 2500
> > >> > XYZ 3000
> > >> > America Fund 3000
> > >> >
> > >> >
> > >> > The tables show that XYZ was dropped after 9/31/2005 and America

Funds
> > >> > was
> > >> > brought in. I have struggled with this query for a couple of days.
> > >> > Any
> > >> help
> > >> > would be appreciated.
> > >> >
> > >> > Jones
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>

> >
> >
> >



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism need urgent advice.......
Today 10:41 AM
8 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 10:52 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.50170 seconds with 30 queries