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 7603679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:43:03+00:00 2026-05-30T23:43:03+00:00

I am combining 2 tables into 1, by using the following statements Select Calls.*,Patient.*

  • 0

I am combining 2 tables into 1, by using the following statements

Select Calls.*,Patient.*
INTO Calls2
From Calls,Patient

Now, i set one of the column as primary key but I cant get that primary key to have Identity Increment.
What should i do to do this?

Thanks in advance,
Madhu

  • 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-30T23:43:04+00:00Added an answer on May 30, 2026 at 11:43 pm

    First, you should know that you are doing a cartesian product of your tables. If you want to add an identity column when you are creating your table, then do the following:

    Select IDENTITY(INT,1,1) ID, Calls.*,Patient.*
    INTO Calls2
    From Calls,Patient
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having trouble combining two MySQL statements into one, at the moment im having
I'm combining these 3 tables into a report query with INNER JOINs (this is
I want to extract text from a column using regular expressions in Oracle 11g.
Using prepared statement i tried to insert values into table shows No column name
I've been given the task of combining 7 databases into one legacy system that
This is my problem; I'm creating tables from asset all are in one file
I'm just combining css files from other templates but I can figure out why
Any tips on combining multiple .js files into 1 (for a build process). Will
Having problems with the combining of two statements in a controller. Both statements work
Is there any gain to combining all of the classes for a project into

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.