MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 25th, 2004, 11:27 AM
KillerKeller_jr KillerKeller_jr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 11 KillerKeller_jr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
MS query help

This is a college project for my parents farm: I am trying to make a query where after the user enters in some dates for a between command I would also like it to ask if the user would like to create a new LID (litter ID) in another table. How do I go about this? I also need this to work so that when I make a report it will automatically put the new LID into the report. IF you need more info let me know.

Tables
Boar
Litter
PreweaningDeaths
Services
Sow/Gilt

Thanks
Chris

Reply With Quote
  #2  
Old April 25th, 2004, 02:20 PM
KillerKeller_jr KillerKeller_jr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 11 KillerKeller_jr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Here is the structure of my DB:

Boar
BID(PK)
DateEnteredHerd
CulledDate
CulledReason
UID(FK)

Sow/Gilt
ID(PK)
DateEnteredHerd
Genetics
CulledDate
CulledReason
DiedDate
DiedReason
UID(FK)

Services
SID(PK)
ID(FK)
BID(FK)
DateBred
DateToFarrow
FailedToFarrow
BreedingComments
UID(FK)

Litter
LID(PK)
DateFarrowed
NumberBornLive
DateWeaned
NumberWeaned
Mastitis
Stillborn
Mummies
SID(FK)
UID(FK)

PreWeaningDeaths
PID(PK)
LID(FK)
DateDied
Cause
UID(FK)

UserID
UID(PK)
FirstName
LastName

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > MS query help


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway