| A community of more than 1,600,000 database professionals and growing |
| | A Database Design Test I was watching a presentation recently on database design and the speaker talked about how he hires developers. These are full stack developers, for whom the database is a portion of their responsibility. One of the tasks he gives them is a short database design test, designed to get a rough idea of their knowledge of databases. The test is a short story, with a classroom/course/scheduling scenario. There are descriptions in some business terms, and the instructions ask the reader to to decide how to put entities together and link them. There is a sample unlabeled diagram with only a couple boxes. The diagram is meant to clue them in to the way to indicate relationships, and there are names of different structures in the test in bold. For someone experienced in databases, this would seem trivial as the entities are listed in bold, and the test is designed to be completed in 5 minutes. Extra points for not crossing any relationship lines. I found this to be a nice, short test to gauge a developer's knowledge. The speaker noted that they didn't worry too much about time taken, or the exact notation used in the digram. This is mostly a way to measure if an individual thinks in terms of entities and connections. This is part of a few tests used for a basic evaluation of how a developer solves practical problems, and avoids the trivia based examination used by many interviewers. I was intrigued since I've never been really asked to design anything and I've had quite a few jobs where that would be a portion of my job duties. No one has given me a scenario and asked me to produce an ER diagram. The most I've gotten is some theoretical questions on normalization, or what keys are. I wonder if I'm alone. For those of you reading this, have you ever had a design test of any kind in an interview? Can you disclose the types of questions or scenarios? When were you tested? It would be interesting to see if this is used by much of anyone. There seem to be so few ER diagrams in the real world, especially from vendors, who should always produce one for clients. I suspect that few people understand them, or even write them, even though they can be invaluable when trying to write reports and understand the relationships between different entities. Many ask, but could those people produce one? Or read it beyond realizing which field in table a connects to which field in table b? Let me know this week if you've been tested on your database design skills. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
| The Voice of the DBA Podcast Listen to the MP3 Audio ( 4.1MB) podcast or subscribe to the feed at iTunes and Libsyn. The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. | |
|
|
| ADVERTISEMENT | | How to track every change to your SQL Server database See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more |
| | Masking your on-premises database with SQL Data Mask Redgate's latest prototype tool is rapidly developing. Using SQL Data Mask, you can now mask on-premise SQL Server and Azure SQL databases. This blog post explains how it works, and how you can try it out for free. Find out more |
|
|
|
| | | Jefferson Elias from SQLServerCentral.com You will see here a way to handle history tables. This way only takes into account Date-based data cleanup but is easily generalizable. More » |
| Additional Articles from MSSQLTips.com What native SQL Server options are available to export to Excel? Jeremy Kadlec explains. More » |
| In this article, Louis Davidson sticks his neck out, and offers what he believes is a sensible code formatting style, based on twenty-plus years of writing SQL. The result is the Louis Davidson custom SQL Prompt style that you can download using the link at the end of the post, try out, and adapt as required. More » |
| Steve Jones from SQLServerCentral Blogs I wanted to import the million song dataset in SQL Server on Linux. There’s a github repo that has the... More » |
| matthew.mcgiffen 73574 from SQLServerCentral Blogs Cardinality This is a term originally from Mathematics, generally defined as “The number of objects in a given set or grouping”.... More » |
|
|
| | Today's Question (by Steve Jones): What is the maximum data size for LocalDB? |
Think you know the answer? Click here, and find out if you are right. We keep track of your score to give you bragging rights against your peers. This question is worth 1 point in this category: LocalDB. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
ADVERTISEMENT | T-SQL Querying (Developer Reference) Squeeze maximum performance and efficiency from every T-SQL query you write or tune. Four leading experts take an in-depth look at T-SQL’s internal architecture and offer advanced practical techniques for optimizing response time and resource usage. Get your copy from Amazon today. | | |
|
|
|
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Knox): In your Play database, you have two tables, dbo.Stage and dbo.Live. They have the same columns and indexes (and meet all other metadata requirements for ALTER TABLE ... SWITCH), but they are NOT partitioned. Stage has 300 rows of data, and Live has 0. You issue the following command: ALTER TABLE dbo.Stage SWITCH PARTITION 1 TO dbo.Live PARTITION 5; What happens? (Choose 3.) Answer: Warning: The specified partition 1 for the table 'Play.dbo.Stage' was ignored in ALTER TABLE SWITCH statement because the table is not partitioned. Warning: The specified partition 5 for the table 'Play.dbo.Live' was ignored in ALTER TABLE SWITCH statement because the table is not partitioned. The data is now in the dbo.Live table. Explanation: Although Microsoft's documentation doesn't explicitly state it, ALTER TABLE ... SWITCH can transfer data from one non-partitioned table to another non-partitioned table. The documentation is focused on using ALTER TABLE ... SWITCH with partitioned tables, but it does mention that the source can be a non-partitioned table, and also that the destination can be a non-partitioned table. Specifying a partition number for a non-partitioned table is not necessary (or logical), but if you do, SQL Server throws a warning, not an error, and the switch still happens. Reference ALTER TABLE: click here Transferring Data Efficiently Using Partition Switching: click here » Discuss this question and answer on the forums |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. Cumulative patches. Any reason Not to Install ? - SQL 2016, SP1, Cumulative Update 3 was released a little while ago. Any reason NOT to install it on my Production... SQL Server Auditing - We are installing SQL Server 2016 and are looking to use the Auditing functionality to have a proper audit trail... SUBSTRING and CHARINDEX query.... please help. - Hi, I have this table, column, and string: Table = audit_log Column named = request_u Example column value = http://stable-test.test.net/api/files/fs.testcollection/TP-0000000.pdf/download/ What I need to do is return the... Copy Table Data - I have a large table that I need to copy. (insert into , select, from ) It brakes with the following... SQL server 2014 is very slow - Based on this report(performance monitor) can any one tell why the Sql server is running slow. many application have slow... Sync data from local db to Central SQL Server - Hi All, I have a requirement to sync local db data with central SQL server. The remote users (mostly around 10... More problems with SQL 2014's new Cardinality Estimator - We have an established SQL-based product which has been running just fine (with the occasional problem!) on SQL 2005 ... 2012... Using Cursors And Fetch - Hi Guys, I'm writing a basic data entry app with VB.Net. I'm in the process of attempting to convert client side... Convert integer to date - Hello, In a flat file source (that comes from a Microsoft publishing "Training Kit - Implementing a Data Warehouse with Microsoft SQL... Updating multiple columns in a single statement for a table according to non-matching column names - I need to populate a table containing customers’ ageing with the remaining amounts in each of four columns. The customer’s... Help me with the ALTER TABLE statement - This works fine.. But I like to write this as 2 statements 1.) Create table ( via T-SQL ) 2.) After creating table... What's the best way to get a sample set of a big table without primary key? - This is what is happening here: We have lots of big data, table's size is often around billion and there is... performance question about profiler trace - I have a problem where one of my procedures is very slow but I struggle to understand one aspect of... EXCEPT returning matching rows - Hi, I made a change to a query to return data quicker. I used the EXCEPT operator to make sure... Creating Identity column reorders table - I have a table with 1 column (varchar) and when I create an identity column with autoincrement on it. It... Unable to understand the Query Logic - Hi While I was browsing for some interesting puzzles on t-sql I found the below one. but I am unable to understand... log_reuse_wait_desc column says LOG_BACKUP - what should i do ? - I'm using Sql Server 2005. When i tried to compile a stored procedure i got the below message The transaction log for... Using File System Task to partially delete directory contents - This is for SSIS 2012. I have a bunch of files in a directory that all start the same way (MyFile_Date_File1,... Someone please help - SSIS - Get info from SQL server table about which particular files to load in target SQL server table - Hi all, I am struggling with the problem as below. "A folder contains many source files (may be excel or text... How to identify the position of the nth occurance of character in a string - Hi Folks, I would like to know the best way to identify the nth occurrance of a specified character in a... |
|
| This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. | This newsletter was sent to you because you signed up at SQLServerCentral.com. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here. | This transmission is ©2017 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|