-
how to write this SQL query and SQL assertion
Hi all:
I'm trying to write an SQL query and an SQL assertion for the following problem
for my database class. I've just started and am able to do some of the easier
problems but am having problems with this. If anyone could help me, it would
be greatly appreciated.
Thanks, Diana.
Given the database schema R(a, b, c), and a relation r on the schema R, write
an SQL query to test wheather the functional dependency b->c (b implies c)
holds on relation r. Also write an SQL assertion that enforces the functional
dependency. Assume that no null values are present.
-
Re: how to write this SQL query and SQL assertion
Diana Perkins <makavelius@aol.com> wrote in message
news:3a1a401a$1@news.devx.com...
>
> Hi all:
>
> I'm trying to write an SQL query and an SQL assertion for the following
problem
> for my database class. I've just started and am able to do some of the
easier
> problems but am having problems with this. If anyone could help me, it
would
> be greatly appreciated.
>
> Thanks, Diana.
>
> Given the database schema R(a, b, c), and a relation r on the schema R,
write
> an SQL query to test wheather the functional dependency b->c (b implies c)
> holds on relation r. Also write an SQL assertion that enforces the
functional
> dependency. Assume that no null values are present.
You know, I've been programming in SQL for years, and I have no clue what
this means. =P
--
Colin McGuigan
-
Re: how to write this SQL query and SQL assertion
Funny. I was thinking the same thing. What is a "SQL Assertion?" A
constraint?
-Mike
--
Michael Levy MCDBA, MCSD, MCT
michaell@gasullivan.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks