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 > General > Database Concepts & Design > Getting started

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-09, 23:17
CVD CVD is offline
Registered User
 
Join Date: Apr 2008
Posts: 27
Getting started

Hi,
My question is, what's the hardest database fundamental to learn for a beginner, and why?
1) table setup
2) queries
3) other

Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-15-09, 23:43
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Depends on the beginner.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 07-16-09, 02:08
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
for many beginners it seems to be relational table design
after that its learning to harness the power of SQL to do what you want.

after that you are into more esoteric country in terms of maintenance, query optimisation and so on
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #4 (permalink)  
Old 07-16-09, 07:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
3) other -- thinking in sets
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 07-16-09, 07:49
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Not to be confused with thinking insects.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #6 (permalink)  
Old 07-16-09, 09:41
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by pootle flump
Not to be confused with thinking insects.
No no, bug fixes are important too.

Quote:
Originally Posted by CVD
Hi,
My question is, what's the hardest database fundamental to learn for a beginner, and why?
1) table setup
2) queries
3) other
4) the nerdy banter
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #7 (permalink)  
Old 07-16-09, 09:41
CVD CVD is offline
Registered User
 
Join Date: Apr 2008
Posts: 27
Thanks. What are sets?
Reply With Quote
  #8 (permalink)  
Old 07-16-09, 09:49
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by CVD
Thanks. What are sets?
see? told ya!!
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #9 (permalink)  
Old 07-16-09, 10:47
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Remember back in high school, that semester you studied Venn Diagrams?
Remember thinking to yourself, "What possible use is this nonsense?"
Welcome to our world.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #10 (permalink)  
Old 07-16-09, 16:45
CVD CVD is offline
Registered User
 
Join Date: Apr 2008
Posts: 27
Quote:
Originally Posted by r937
see? told ya!!
Thanks for the info.
Reply With Quote
  #11 (permalink)  
Old 07-16-09, 17:50
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
Quote:
Originally Posted by CVD
Hi,
My question is, what's the hardest database fundamental to learn for a beginner, and why?
1) table setup
2) queries
3) other

Thanks.
Table setup is not a database fundamental. Design Theory is. Good question though.

Perhaps one of the hardest things for the inexperienced is to adjust their thinking for different kinds of data models (I mean "model" in the most general senses, such as "semantic models", "the Relational Model", "hierarchical model"). Many people will have a good comprehension of some models and find it harder to adjust to others. To quote William Kent (in his book Data and Reality):

"A model is more than a passive medium for recording our view of reality. It shapes that view, and limits our perceptions. If a mind is committed to a certain model, then it will perform amazing feats of distortion to see things structured that way, and will simply be blind to the things which don't fit that structure."
Reply With Quote
  #12 (permalink)  
Old 07-16-09, 19:21
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Most database beginners still think like programmers, one row at a time. Most modern databases work in a fundamentally different way, in that you specify WHAT you want done and what SET of rows you want that done to, then let the database engine figure out the best way to accomplish the job. Using sets instead of rows tends to lead to performance improvements from ten to a thousand times what the row based performance was.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #13 (permalink)  
Old 07-16-09, 20:38
CVD CVD is offline
Registered User
 
Join Date: Apr 2008
Posts: 27
Thanks for the replies. I understand the mathematical concept of "sets", but is there possibly a simple example to illustrate the row thinking vs set thinking concept?

Last edited by CVD; 07-16-09 at 20:42.
Reply With Quote
  #14 (permalink)  
Old 07-16-09, 22:15
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by CVD
... is there possibly a simple example to illustrate the row thinking vs set thinking concept?
sure -- "return the last three rows of the table"

Attached Images
File Type: bmp last-three-rows.bmp (15.8 KB, 11 views)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book

Last edited by r937; 07-16-09 at 22:22.
Reply With Quote
  #15 (permalink)  
Old 07-16-09, 22:50
CVD CVD is offline
Registered User
 
Join Date: Apr 2008
Posts: 27
Ignorance alert::::::

If the records have an "auto number" field, couldn't you determine the highest autonumber and return it and -1 and -2?
Or is the problem "return the last three rows if there is no autonumber field". If so, is the answer to determine what field in the rows can be used to determine the last three?

Last edited by CVD; 07-16-09 at 22:58.
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