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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:20:45+00:00 2026-06-06T00:20:45+00:00

So this is what I have, I have a SQLite database with 3 tables:

  • 0

So this is what I have, I have a SQLite database with 3 tables: status,up_date & users. This database is on the server. I need to run following query on this:

SELECT USR.name, USR.cymer_id, ST.license
FROM
users USR,
status ST,
upd_ate UD
WHERE
UD.upt_id = (select max(p2.upt_id) from upd_ate p2)
AND ST.cymer_id = USR.cymer_id
AND ST.upt_id = UD.upt_id
ORDER BY USR.name

And then display the result on a webpage using HTML.

I was wondering is there any way to do this using java/javascript? or is there any way I can write a java/perl/javascript code to get a xml/text of the output and then display that?

Thanks for your help.

  • 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-06T00:20:45+00:00Added an answer on June 6, 2026 at 12:20 am

    In Perl, use CGI to generate HTML page and DBI for database query:

    #!/usr/bin/perl
    
    use strict;
    use warnings;
    use CGI;
    use DBI;
    
    my $q = CGI->new;
    print $q->header, $q->start_html('hello'), '<table>';
    
    my $dbh = DBI->connect("dbi:SQLite:dbname=mydatabase.db", "", "", {});
    
    my $query = <main::DATA>;
    my $query_handle = $dbh->prepare($query);
    $query_handle->execute();
    $query_handle->bind_columns(\my($id, $name, $license));
    
    while($query_handle->fetch()) {
      print "<tr><td>$id</td><td>$name</td><td>$license</td></tr>\n"
    }
    
    $query_handle->finish;
    $dbh->disconnect;
    
    print '</table>', $q->end_html;
    
    __DATA__
    SELECT USR.cymer_id, USR.name, ST.license
    FROM users USR, status ST, upd_ate UD
    WHERE
      UD.upt_id = (select max(p2.upt_id) from upd_ate p2)
      AND ST.cymer_id = USR.cymer_id
      AND ST.upt_id = UD.upt_id
    ORDER BY USR.name 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this example we have 3 related tables on a SQLite database: CREATE TABLE
I have a datalogging application (c#/.net) that logs data to a SQLite database. This
I have made this code to open a database(created in SQLite browser) stored in
I have a SQLIte database with tables for places and tables for tags, CREATE
I have doing some POC in Ruby-on-Rails and using sqlite database, while doing this
I have following Scenario: PHP(Server, Writer) ----> MySQL Database <------ PHP(Client, Reader/ Writer); PHPS
I have a Content Provider for a SQLite database that has multiple tables and
I query certain tables of an sqlite database: public Cursor showAllTables(){ String mySql =
I'm using SQLite.cs wrapper for helping me with the database and I have this
I have an SQLite database with 4 tables in it that I want to

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.