Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Off-Topic-Archive > SQL quickie
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:28
  Old Post 06-06-2003 00:43
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
SQL quickie Tired of ads?

how do i find the minimum value of a column based on another column?

ie If I had columns 'age' and 'height', how would I get the min (height) for (say) ages 9,12,15 ommiting all the other ages?

cheers

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:28
  Old Post 06-06-2003 00:46 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

SELECT MIN(height) FROM table WHERE age=9 OR age=12 OR age=15

it might need to be...

SELECT MIN(height) AS MinHeight FROM table WHERE age=9 OR age=12 OR age=15

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:28
  Old Post 06-06-2003 01:25
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

many thanks Asher

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:28
  Old Post 06-06-2003 01:27 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Avatar Enlargement: We've got the solution

No problem. I'm dealing with programming SQL on a daily basis now so it was pretty easy to answer.

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:28
  Old Post 06-06-2003 03:28
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

you got that job you said you had the second interview for a while back?

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:28
  Old Post 06-06-2003 04:28 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Lose 30 kilos (of popups)

Yeah.

Sole programmer for a small business, making an app that calculates and spits out building instructions (they make stairs), maintains a DB of the customers, workorders, and stair models, integrates with Simply Accounting (invoices, etc) and AutoCAD (designs and models).

It's great fun. Great pay, too. And zero supervision.

JohnT is offline JohnT

Emperor
Capitalist
Mar 1999
time: 00:28
  Old Post 06-06-2003 05:53
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

Congrats, Asher!

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:28
  Old Post 06-06-2003 06:09
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Asher
It's great fun. Great pay, too. And zero supervision.


The 3 'musts' IMHO!

Nice One!

MattyBoy is offline MattyBoy
Prince
Pekka Fan Club
Jun 2001
time: 15:28
  Old Post 06-06-2003 07:05
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

SELECT MIN(height) FROM table WHERE age in (9,12,15)

gives the same result and in most circumstances runs quicker (only matters if it is running slowly, of course).

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:28
  Old Post 06-06-2003 09:33
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Asher
Sole programmer for a small business, making an app that calculates and spits out building instructions (they make stairs), maintains a DB of the customers, workorders, and stair models, integrates with Simply Accounting (invoices, etc) and AutoCAD (designs and models).


Integrating with AutoCAD? With SQL?

Asher is offline Asher
King
Calgary, Alberta
Nov 1999
time: 22:28
  Old Post 06-06-2003 09:38 Visit Asher's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Get a bigger avatar today!

No, the program just needs to integrate with AutoCAD so he can import blueprints into the program. SQL would only save the filenames of the blueprints.

Simply Accounting is wonderful to work with -- it actually stores all its information in an Access 2000 DB. All I needed to do was toss together a MS Jet OLE DB consumer (via the wizards, took seconds), and I'm putzing around inside all the data that I need with an SQL connection.

Last edited by Asher on 06-06-2003 at 09:44

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:28.
Apolyton Time is 00:28.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0316 seconds (85.24% PHP - 14.76% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net