473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Time Frame

hi all,
i have two questions,
1) I have a huge data set, I need to separate them into three different time frame (equally). What is the fastest way to do so.

2) After performing a select statement ( a query from the original database) how can i save the output into a different database with a different name so that i could use the selected result other purpose.

thank u.
Dec 4 '11 #1
1 2052
adriancs
122 100+
select * from tablename where dateTime = '2011-12-07 00:00:00';
select * from tablename where dateTime > '2011-12-07 00:00:00';
select * from tablename where dateTime < '2011-12-07 00:00:00';
select * from tablename where dateTime > '2011-01-01 00:00:00' and dateTime < '2011-12-01 00:00:00';

answer for question 2:
just create another MySqlConnection which point to another database.
Dec 7 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: CH | last post by:
Hi, I recently encountered a problem while trying to create a report grouped by certain time frames. However, Access only allows grouping in Minutes or Hours. For example, the first time frame is...
4
by: karunakar | last post by:
Hi All I was poplating Datagrid Datagrid has one of the column showing datetime field format iam showing DATE here not Necessary to populate the Time Frame Even my datebase column also...
1
by: TS | last post by:
I have a page that executes a method that takes a long time and i have an iframe that displays an progress bar animated gif while the page is running. The first time you hit it, it doesn't animate....
1
by: abhi.10dulkar | last post by:
Hi guys, This might be simplest thing, but I am newbie to databases. I need to find out only rows modified within certain time period from a database. As I undertand a way out could be adding...
1
by: bobbymvs | last post by:
Hye any body can suggest me how to transactions betwene two dates from a table with certain time gap ex: i need from yesterday say around night 10.00 oclck to today night 10.00 clock ... Pls...
1
by: smuthuchitra | last post by:
how do i get the count of records between 11PM and 1AM by day for the 10 days ?
8
by: Proaccesspro | last post by:
I have several reports that are date driven. (There is a Date field called date received in the DB) I need to offer the user a time frame for each report. For example, I have a report named by...
1
by: akadeco | last post by:
Hi I've been wondering if there was a simple way to detect if a user presses the same character on the keyboard twice within one second. I've written some code that kind of works but it's...
0
by: k01902 | last post by:
The-Center-3004 23/11/2009 9:50 23/11/2009 9:51 SOP Status The-Center-3004 23/11/2009 9:52 23/11/2009 10:00 SOP Status ...
1
by: beulajo | last post by:
Hi, I fix an appointment for a patient at one time frame, when I add another appointment for someother patient for the same time frame, I should show them that the appointment is fixed already,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.