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

Hi All,

I've been invited along to speak to a potential employer regarding a job that is very specific to my own skill set. When they called me in relation to this role I advised that the only criteria that I didn't meet was experience with SQL.

They asked if I could do a basic crash course in it and get back to them within one week at which time they would set me a very basic test on the field.

I've googled this language which appears to be used by databasesm, however I haven't found any good resources that can help me to learn this from a beginners perspective. Can anyone provide some guides please?
«1

Comments

  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Have a look at http://www.sqlservercentral.com/
    It's a good place to learn and the people on the forums are very
    knowledgeable.
    Whether it will walk you through the basics I don't know.
    You always download the express version of SQL Server and there are plenty of sites on t'net to get you started.
    :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.
  • Cornucopia
    Cornucopia Posts: 16,638 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    dogmaryxx wrote: »

    That looks good.
  • bod1467
    bod1467 Posts: 15,214 Forumite
    edited 12 December 2013 at 4:11PM
    Do they use any specific flavour of database?

    Whilst the generics of SQL are common, there are some specifics to the language construct depending on the database server in question. (MSSQL, MySQL, Oracle, PostgreSQL, Access, etc.)

    You may also need to be aware of Normalisation (e.g. third normal form), Prepared Statements and/or Procedures, SQL Injection Attacks, etc.

    How much you need to know at the outset really depends on how much a part of this job SQL will be.
  • Ximian
    Ximian Posts: 711 Forumite
    Part of the Furniture 500 Posts Combo Breaker
  • Mr_Toad
    Mr_Toad Posts: 2,462 Forumite
    As others have said, do you know what databases they use?

    I'm an Oracle DBA, hence my avatar, and have been using SQL since the 80s. I'm still learning. There's SQL as a data definition language, DDL as well as data manipulation language, DML as well as the query commands that most people are familiar with.

    Did they give you any idea what the test would include?

    If I were you I'd be looking at how to create a basic database with tables. Then use of INSERT INTO and UPDATE etc..

    Do they use PL/SQL - that is procedural SQL? If so then welcome to world of Cursors and program blocks.

    Will you be developing in SQL or supporting an SQL application? Will you be doing everything from installing the database software, developing the database then supporting it and doing the DBA work?

    Or is it more a case that they have a database and will be asking you to run queries against it to extract data and format reports?

    Lastly what operating system is the server running? Do they use a GUI like Oracle Enterprise Manager or whatever the MS GUI is called or is it done from the Linux/Windows command line, my preferred option.

    Most large database applications run on Linux wither the exception of the Windows SQL Server stuff, 99% of the stuff I look after is Linux. When we get odd Windows Server problem I usually let someone else deal that has more MS training than me.

    Don't let my ramblings put you off, get a decent book and do some on-line training. Of course you'll need a database installed to train on which is only going to help you.

    Good luck and let us know how it goes.
    One by one the penguins are slowly stealing my sanity.
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    You can learn the very basics in a week (like being able to say 'how much?' in Spanish, or asking for a baguette in French), but the language runs deep and the data abstraction and modeling methodologies are more akin to an understanding of the culture - that takes years to actually become instinctual.

    Can you afford a crash class at an it training company, even a 2 day one? Generally quite expensive but the value of being hands on in a classroom with help on tap is very high. It'll make a big difference to your confidence to know that you managed to do xyz once even if you've got to go back to your notes to remind yourself.

    But, rest assured, if the interviewing company said a 1 well crash course is enough, either they themselves don't understand SQL and data management, or the requirement is quite simple. SQL, when you get into it, is very elegant for working with large sets of data at once. There are a couple of gotchas (join types will make the world of difference for instance, and this is why a classroom session can Really help), but of all the programming related things you can do, it's one of the most satisfying. For me, anyway.
  • WTFH
    WTFH Posts: 2,266 Forumite
    paddyrg wrote: »
    (like being able to say 'how much?...for a baguette),

    Select Bread_type, Price from Proddta.bread
    Where Bread_type = "baguette";
    1. Have you tried to Google the answer?
    2. If you were in the other person's shoes, how would you react?
    3. Do you want a quick answer or better understanding?
  • paddyrg
    paddyrg Posts: 13,543 Forumite
    WTFH wrote: »
    Select Bread_type, Price from Proddta.bread
    Where Bread_type = "baguette";

    With a (nonclustered) index on Bread_type ;-)
  • WTFH
    WTFH Posts: 2,266 Forumite
    paddyrg wrote: »
    With a (nonclustered) index on Bread_type ;-)

    Indices are for people who want information in a hurry. I get paid by the hour.
    1. Have you tried to Google the answer?
    2. If you were in the other person's shoes, how would you react?
    3. Do you want a quick answer or better understanding?
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.