Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Expert > X04 > < X03 | X05 >
Back to Access Expert 4    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
Record Source SQL
Mark Young 
    
8 months ago
@4:06 ~ The SQL Statement is:
   SELECT * FROM RelativeTypeT ORDER BY Description;

It seems that it would also be just as effective written as:
   SELECT Description FROM RelativeTypeT ORDER BY Description;

Is there a particular reason to SELECT * rather than the field?
Sami Shamma  @Reply  
             
8 months ago
if the only results you want is Description, then

SELECT Description FROM RelativeTypeT ORDER BY Description;
is perfectly fine.

if on the other hand you wanted all the fields in the Table, then

SELECT * FROM RelativeTypeT ORDER BY Description


Mark Young OP  @Reply  
    
8 months ago
That was pretty much my conclusion, just wanted to verify tho...

Thanks Sami!
Kevin Yip  @Reply  
     
8 months ago
It is good practice to minimize data retrievals, so you want to retrieve only the fields you need, no more, no less.  Therefore, SELECT * is often less desirable to SELECT field1, field2, etc., especially if the table has a lot of fields.  Field size is important too in determining how much data you are retrieving.  A numerical field only takes up a few bytes.  But a text field can occupy hundreds, thousands, even millions of bytes or more.  A long text field can hold gigabytes of text.  In short, always practice caution when you use SELECT *.
Mark Young OP  @Reply  
    
8 months ago
Thanks for your input Kevin!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Expert 4.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/14/2025 2:06:06 AM. PLT: 1s