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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:30:36+00:00 2026-05-26T13:30:36+00:00

EDIT: Looking for help from J. Leffler, Cheese Con Queso or anyone who knows

  • 0

EDIT: Looking for help from J. Leffler, Cheese Con Queso or anyone who knows Informix-SE well.

Informix-SE 4.11:

I have a table called ‘cuadre’ which is used to reconcile the cash drawer at the end of each business day (Monday thru Saturday). Once the drawer has been reconciled, the amount in the cash drawer is stored in column ‘cu_sa_cash’, the row is saved and the system is shutdowned, the store is closed for the day and we all go have some beers.. On the next business day, we start up the system, run an SQL procedure that creates (inserts) a new row in the cuadre table for that days postings and repeat the cycle again.

I would like for my SQL proc to INSERT the new row for the current day with the same cash in drawer amount that was stored in the previous business days row. Keep in mind that this is not SPL, as I’m still using SE 4.11.. So, the below SQL statements are the general idea of what I want to accomplish, but they don’t work!.. Can you provide me with solution?.. Thanks!

INSERT INTO cuadre(cu_date,cu_en_dincaja)
     VALUES (TODAY,(SELECT cu_sa_cash
                      FROM cuadre
                     WHERE cu_date = (SELECT MAX(cu_date)
                                        FROM cuadre)));

or

INSERT INTO cuadre(cu_date)
     VALUES(TODAY);   

UPDATE cuadre
   SET cu_en_dincaja = (SELECT cu_sa_cash
                          FROM cuadre
                         WHERE cu_date = TODAY - 1)
 WHERE cu_date = TODAY; 
  • 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-26T13:30:37+00:00Added an answer on May 26, 2026 at 1:30 pm

    using a temp table was the solution to the problem

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

Sidebar

Related Questions

I am looking for a way to edit data and have values dynamically calculated
We're looking at moving from a check-out/edit/check-in style of version control system to Subversion,
Edit: Well, I feel rather sheepish. I was looking at the wrong constructor. The
I'm looking for some help. I've tried searching this site and have tried amending
EDIT I'm looking for the actual one or two liner that does what the
[Edit (Haren): Duplicate ] I'm looking for a way to automatically wrap my NUnit
I'm looking for a way to edit a configuration file (web.config in an asp.net
I am looking for a tool which will make able to edit parts of
I was looking for a way to call the edit method directly. - (void)tableView:(UITableView
I'm looking for a VS2008 Plugin or other tool that allows me to edit

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.