SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Relational Model versus XML


Relational Model versus XML

Author
Message
Stewart "Arturius" Campbell
Stewart "Arturius" Campbell
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11010 Visits: 7327
Koen Verbeeck (1/24/2013)
GPO (1/24/2013)
What a stupid question. How can you possibly answer it with the limited details provided?


I first thought it was a joke :-D
"Pffft, who uses XML anyway?"


Xml os very handy when one has to deal with seriously unstructured data and or , for example, metadata concerning document storage. I worked for a client who had implemented a content management solution, and had to stote the metadata about all the scanned-in documents. Because of the wide range of data, xml turned out to be the most efficient way to store this data; but only as part of a relational model.

____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Steve Hall
Steve Hall
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3398 Visits: 11698
I got this question right, but only because there isn't enough information to make an choice about one over the other.
The true answer should be "Either is a candidate at this point, due to insufficient information".

Steve Hall
Linkedin
Blog Site
Hugo Kornelis
Hugo Kornelis
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13177 Visits: 12179
I think the correct answer should be worded slightly differently: "Either one can be appropriate" (italics used to emphasize changed part).

If forced to make a choice based on the limited information given, my second choice would be a relational design with some XML columns for the less- and un-structured data.
(My first choice would be to first read the documentation and conduct some interviews)


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Arthur Olcot
Arthur Olcot
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3250 Visits: 1779
Hugo Kornelis (1/24/2013)
I think the correct answer should be worded slightly differently: "Either one can be appropriate" (italics used to emphasize changed part).

If forced to make a choice based on the limited information given, my second choice would be a relational design with some XML columns for the less- and un-structured data.
(My first choice would be to first read the documentation and conduct some interviews)


+1

I think there is a missing answer "Both together is appropriate" which I feel is probably the correct answer based on the poor question. In reality you would probably have a mostly relational database with some XML as required for some of the unstructured content. As such I went for relational and got it wrong as I wouldn't choose a pure XML repository to drive a website. You need a fair bit of data stored relationally. I don't mind getting questions wrong as it helps you to learn, but this is a pretty bad question...
Stuart Davies
Stuart Davies
SSCertifiable
SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)

Group: General Forum Members
Points: 5805 Visits: 4743
Got it right as I thought that "either" was the most probable answer.

Like most people are saying here I think the real answer is "it depends".

-------------------------------Posting Data Etiquette - Jeff Moden Smart way to ask a questionThere are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan I would never join a club that would allow me as a member - Groucho Marx
call.copse
call.copse
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4362 Visits: 1952
arthurolcot (1/24/2013)
Hugo Kornelis (1/24/2013)
I think the correct answer should be worded slightly differently: "Either one can be appropriate" (italics used to emphasize changed part).

If forced to make a choice based on the limited information given, my second choice would be a relational design with some XML columns for the less- and un-structured data.
(My first choice would be to first read the documentation and conduct some interviews)


+1

I think there is a missing answer "Both together is appropriate" which I feel is probably the correct answer based on the poor question. In reality you would probably have a mostly relational database with some XML as required for some of the unstructured content. As such I went for relational and got it wrong as I wouldn't choose a pure XML repository to drive a website. You need a fair bit of data stored relationally. I don't mind getting questions wrong as it helps you to learn, but this is a pretty bad question...


These were my exact thoughts - you may wish to use either but would probably end up using both in reality. This would be the tactic favoured by many CMS e.g. Umbraco, which might be used to drive such a site. I got it right though as none of the wrong answers were really feasible in my head at least even if the right one was not totally plausible.
Lokesh Vij
Lokesh Vij
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2444 Visits: 1599
Got this question wrong!
But yes there is a scope for improvement. Either question could have provided more details or answer choices could have been framed better (as pointed out by Hugo).

Thanks

~ Lokesh Vij

Guidelines for quicker answers on T-SQL question
Guidelines for answers on Performance questions

Link to my Blog Post --> www.SQLPathy.com

Follow me @Twitter


Gazareth
Gazareth
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4719 Visits: 5919
Stuart Davies (1/24/2013)
Got it right as I thought that "either" was the most probable answer.

Like most people are saying here I think the real answer is "it depends".


"It depends" was the option I was looking for!
Richard Warr
Richard Warr
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2948 Visits: 1990
Interesting that we currently have four people who picked "neither". I suppose it could all be done in Excel, but.......

_____________________________________________________________________
MCSA SQL Server 2012
DrKiller
DrKiller
Old Hand
Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)

Group: General Forum Members
Points: 314 Visits: 245
This was a fun guessing question :-D

I first wanted to say XML, because it is like the odd one out and the books online usually use universities in their XML examples..

But then I thought that XML is going to cause a BIG debate, so I trusted the poster will allow everyone for their own opinion :-P
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search