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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:25:56+00:00 2026-06-17T04:25:56+00:00

I have three tables… First table Parameter_value_archive having columns as: Para_id , para_value ,

  • 0

I have three tables…

First table Parameter_value_archive having columns as:

  • Para_id,
  • para_value,
  • created_date,
  • meter_id.

Sec table meter_primary_master having columns as:

  • meter_name,
  • meter_id.

third table parameter_master having columns as:

  • para_name,
  • para_id.

I want to collect data from these three tables and put it in a new table name Meter_specs having columns as:

  • created_date,
  • meter_id,
  • meter_name,
  • para_name,
  • para_id,
  • para_value.

How do do this ??

  • 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-06-17T04:25:57+00:00Added an answer on June 17, 2026 at 4:25 am

    To create a new table having the same table definition of a select clause, use CREATE TABLE ... AS SELECT ... like this:

    CREATE TABLE Meter_specs
    AS
    SELECT 
      ar.created_date,
      m.meter_id,
      m.meter_name,
      p.para_name,
      p.para_id
    FROM Parameter_value_archive ar
    INNER JOIN meter_primary_master m ON ar.meter_id = m.meter_id
    INNER JOIN parameter_master     p ON p.para_id = ar.para_id = p.para_id;
    

    This will make a new table Meter_specs with the columns:

    • created_date,
    • meter_id,
    • meter_name,
    • para_name,
    • para_id.

    SQL Fiddle Demo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three tables, 1-Users, 2-Softwares, 3-UserSoftwares. if suppose, Users table having 6 user
I have three tables of data: table: cars [10,000 rows] table: planes [2,000 rows]
I have three tables Author, Book and AuthorBook. AuthorBook table only contains two foreign
I have three tables in oracle db as newitems, itemdetails, ticketitems table. Some dummy
I have three tables: Campus Building Floor and table structure is looks like this:
I have three tables : Tool, Color and ColorTool. ColorTool has 3 columns :
I have three tables: game columns: id | name (eg. 1 | Halo) own
I have three tables: CREATE TABLE Movie ( movieId INTEGER GENERATED BY DEFAULT AS
I have three tables : ImportBatch PatientChartImages PatientChartBatchMapping (this table has foreign key to
I have three tables, Products(ProductID, ProductName) Orders(OrderID, OrderDate) OrderDetails(ProductID, OrderID) Junction table between Products

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.