Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7619439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:41:15+00:00 2026-05-31T03:41:15+00:00

I have a data with the following sample data: ID CID Name ImageLocation Order

  • 0

I have a data with the following sample data:

ID  CID     Name            ImageLocation                           Order   
1   1   Suit Jacket Content/Berwin/Content/Images/SuitJacket.jpg    1
2   1   Trousers    Content/Berwin/Content/Images/Trousers.jpg      2
4   2   Jumper      Content/Berwin/Content/Images/Jumper.jpg        1
5   3   Trousers    Content/Berwin/Content/Images/Trousers.jpg      1
6   4   Suit Jacket Content/Berwin/Content/Images/SuitJacket.jpg    1

ID is PK, CID is FK and order is the order to be shown in not an Order FK

Is there anyway to enforce that the number within the Order column is unique within the scope of its CID. I.e. I wouldn’t be able to insert 1 or 2 when CID is 1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:41:17+00:00Added an answer on May 31, 2026 at 3:41 am

    Yes, this is possible.

    You can add a new ‘Unique Key’ to your database.

    • In SQL Server Management Studio, go to the Design mode of your table.
    • Right-click > Indexes/Keys…
    • Add a new Index/Key
    • Set its type as “Unique Key”
    • Add Columns CID and Order
    • Close dialog window and save table
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following sample data: Id Name Quantity 1 Red 1 2 Red
i have the following sample data with duplicate information: ID Date Emp_ID Name Keep
I have data in a table that looks like the following sample data: varchar(20)
I have data like this. Following is the sample data. alt text http://a.imageshack.us/img695/441/custoemrids.png I
I have the following sample set of data: <p>first line\n second line\n third line\n</p>
I have the following sample xml in a column of xml data type: <diagnostics
I have a csv file with following sample data. o-option(alphabetical) v-value(numerical) number1,o1,v1,o2,v2,o3,v3,o4,v4,o5,v5,o6,v6 number2,o1,v11,o2,v22,o3,v33,o44,v44,o5,v55,o6,v66 and
I have a table that contains the following sample data:- ID Description 1 John
I have a table with the following sample data: id user_id rank date_promoted 1
I have the following sample from MSDN: <Grid x:Name=LayoutRoot Background=White> <Grid.RowDefinitions> <RowDefinition Height=25 />

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.