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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:13:13+00:00 2026-06-12T17:13:13+00:00

DB2 v10.1 database on WINDOWS 7 I have three tables: 1.table Rase id Rases

  • 0

DB2 v10.1 database on WINDOWS 7

I have three tables:

1.table Rase

     id  Rases   Length
     1   Moscow  300
     2   Krasno   400

2.table Plan

    id  Name    Date
    1   ТУ124   10.12.1987
    2   Ан24    10.01.1998

3.table Kril

     ID      COLOR            WEIGH    
      1      green            124,56
      2      blue             187,40
      3      black            231,00

Need to display data in a normalized table ALL_D, as presented below: ID – Primary Key Plan – a reference to Plan.Name Kril – a reference to Kril.Color Race – a reference to Race.Rases Time_Start-departure time (CURRENT TIMESTAMP)

  1. table ALL_D
     ID   Name  Color     Rases        Time_Start
     1   ТУ124  Green     Moscow    2011-10-25-19.12.30.000000
     2   АН24   Blue      Krasno    2011-10-27-17.14.30.000000

I do not understand how to perform this task.

  • 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-12T17:13:14+00:00Added an answer on June 12, 2026 at 5:13 pm

    This is a basic join query.

    insert into all_d
        select rase.id, plan.name, kril.color, rase.rases, 
               current timestamp as time_start
            from rase
            join plan on plan.id = rase.id
            join kril on kril.id = rase.id
    

    join is the same as inner join–only ids that are common to all three tables will be returned.

    Update: also added the insert into result table.

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

Sidebar

Related Questions

I have a (DB2) database table containing location information, one column of which is
I have database db2 with table menjava In table menjava have id, author and
Database: DB2 v9.5 on AIX Scenario: I have 2 instances- db2inst1 and db2inst2. I
I have DB2 table having following structure CREATE TABLE DUMMY ( ID CHARACTER(10) NOT
I have written a DB2 query to do the following: Create a temp table
I have an input db2 table with two elements: loan_number, debt_to_income; this table's name
I have an existing DB2 database at my job. (At least, I think it's
My DB2 database is using UTF-8 encoding. The source table has one colum with
DB2 V9 z/os Background: I have a 4 column table defined as (col1 int,
I have a 'legacy' DB2 database that has many other applications and users. Trying

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.