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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:33:59+00:00 2026-06-07T16:33:59+00:00

I have created a column within a table from which I would like to

  • 0

I have created a column within a table from which I would like to populate the table with data retrieved from another select statement.

This is the statement I am trying to use to populate that one column:

update cc_file
set sd_file_name = (select c1.name sd_file_name
                    from cc_file f, cvs3 c1 
                    where f.sd_file_id = c1.file_id 
                     and (c1.file_id, c1.type) in (select file_id, 
                                                          max(type) 
                                                   from cvs3 
                                                   where type1='PP' 
                                                     and type2='XHMTML' 
                                                   group by file_id)

When I run this statement in Oracle it shows this error ORA-01427: single-row subquery returns more than one row

Please can someone let me know how I can do this so the column is updated.

Thanks

  • 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-07T16:34:01+00:00Added an answer on June 7, 2026 at 4:34 pm

    Try this

    update cc_file 
      set xml_file_name = (select c1.name sd_file_name
                             from cvs3 c
                             where f.sd_file_id = cc_file.file_id and 
                                   (c.file_id, c.type) in (select file_id, max(type)
                                                             from cvs3
                                                             where type1='PP' and 
                                                                   type2='XHMTML'
                                                             group by file_id ))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the column DateTimeExpired, and I would like to create another column called
I have created a new table including a column note. The default is varchar(255)
I have a computed column created with the following line: alter table tbPedidos add
If I have a table column with data and create an index on this
I would like to set up a table within a SQL Server DB that
I have a while() function that loops a row of data within my table.
I have created an SQLite FTS3 table that I am using within the Android
I have an SSIS package that exports data from a table on a SQL
I currently have this code which stores XML into an XML-type column called data,
I have created a gridview with a column of checkboxes. I want the user

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.