Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
SQL Query - uniqueness in combination
Riddhi Valecha
9y
362
1
Reply
Hi all,
I have a table as -
ID
Code
Value
1
101
abc
2
101
def
3
201
abc
4
101
def
Now,
In this table, I need to check the uniqueness in combination -
101 - abc ---> allowed.
101 - def ---> allowed.
101 - def ->> NOT ALLOWED.... Combination "101 - def" exists.
Similarly,
Combination "101 - abc" must not be allowed next time.
How to check this combination uniqueness in SQL Server ??
Please help !!
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Database Design
How to generate the student Report