We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

SQL in a Week

2»

Comments

  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    For the size of table you're going to get, an index won't really help by much.
    A full table scan will be just as quick.

    ::edit::

    Unles you've got a table with several thousand bread/price variations and the server is on it's last legs.
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    rmg1 wrote: »
    Unles you've got a table with several thousand bread/price variations and the server is on it's last legs.

    That's Paddyrg Bakers for you - I have several dozen different prices for each dough product ;-)
  • This reminds me of the old COBOL statement where the fields seem to be misordered:
    DIVIDE 8 INTO CAKE GIVING SLICES
    :)
  • SELECT TOP 5 * FROM SQL_Books
    ORDER BY Skill_Level ASC
  • DigForVictory
    DigForVictory Posts: 12,186 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    Bless you all - I'm applying for a post where "familiarity with SQL would be an advantage" & while I did a bit decades ago, everything went object oriented whilst I was having children.
    Now to arrange a bit of computer time...
  • Ximian
    Ximian Posts: 711 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    Bunch of geeks hijacked this thread ;)

    All you need to know for SQL is:

    tick or tick1tick=tick1

    Hoping no input sanitisation or parameterising queries present.
  • Here's something useful then:
    http://www.headfirstlabs.com/sql_hands_on/

    It lets you play around with some SQL online and get to grips with writing simple select queries

    I cut my 'database' teeth on PHP/mySQL, then slowly moved up to playing with propitiatory reporting languages and TSQL
  • jaydeeuk1
    jaydeeuk1 Posts: 7,714 Forumite
    Debt-free and Proud!
    WTFH wrote: »
    Indices are for people who want information in a hurry. I get paid by the hour.

    I like the way you roll. I've been using SQL (SQL Server 2000 onwards) for 10 years, and I've barely scratched the surface of what can be done with SQL. My limitations in SQL means I'm having to make up for stuff through server side code, mainly classic ASP still, meaning slower apps, more database hits, and then having to recode sections as I learn something new. As mentioned, a crash course will give you basics, such as being able to use unions, left outer joins, stored procedures and explain what and how they're used. I'm guessing you won't have to know about backups, transactional backups, disaster recovery, mirrored dbs, peer to peer db for your job? Otherwise thats a lot of stuff to cram lol


    Delete from users where username <> 'jaydeeuk1'
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.