Science topic

MySQL - Science topic

Explore the latest questions and answers in MySQL, and find MySQL experts.
Questions related to MySQL
  • asked a question related to MySQL
Question
2 answers
Ba
Relevant answer
Answer
2011:
- MySQL 5.5 was released in December 2010, with improvements in replication, security, and storage engines.
- The release of MySQL Workbench 5.2 provided a unified visual tool for database design, development, and administration.
2012:
- MySQL 5.6 was released in February 2012, with significant performance improvements, enhanced security features, and improved query optimization.
- Oracle acquired Sun Microsystems in 2010, which included the MySQL DBMS. This led to concerns about the future of MySQL among the open-source community.
2013:
- MySQL 5.6 saw widespread adoption, with its improved performance and new features like online schema changes and improved query optimization.
- The community-driven fork of MySQL, called MariaDB, gained popularity as an alternative to the Oracle-owned MySQL.
2014:
- MySQL 5.7 was released in October 2014, with a focus on security, scalability, and manageability.
- The release of MySQL 5.7 included support for JSON data type, improved replication, and enhanced query optimization.
2015:
- MySQL 5.7 saw significant adoption, with its improved performance and new features.
- Oracle continued to invest in the development of MySQL, releasing regular updates and bug fixes.
- The competition between MySQL and MariaDB remained strong, with both DBMS systems receiving regular updates and improvements.
Good luck; partial credit ai
  • asked a question related to MySQL
Question
5 answers
Dear Scientists
I have complete my masters focusing on Drug design and Vaccine Design In Silico. I am highly interested in developing bioinformatic tools (Web Based) for my own use, for example my own docking software/ web tools.
I have learned python as a beginner. How may I progress?? What programming language should I emphasize?? Do I need to learn HTML, CSS, Bootstrap, Jquery, Javascript, Node, React, MySQL, Php, MongoDB etc for full stack web development?? Please share your insights, thanks.
Relevant answer
Answer
focused on your project development, create idea and deploy your work in python Flask and DJANGO framework which is most using web development framework in these days.
  • asked a question related to MySQL
Question
3 answers
As i was with some basics of MySQL i tried to jump python but it stunned me as i did matplotlib.pyplot, pandas and numpy basics. i got it difficult.
So in your view what should be the best to adopt.
and also don't forget to mention the scope of Data Scientist.
Thanks In Advance.
Relevant answer
Answer
Becoming a data scientist requires a combination of skills in several areas, including statistics, programming, machine learning, and domain expertise in a particular field. Here is a roadmap to becoming a data scientist:
  1. Learn the fundamentals: Start by learning the basics of programming, mathematics, and statistics. This includes learning a programming language such as Python or R, as well as gaining a solid understanding of statistical concepts such as probability and regression analysis.
  2. Develop your data skills: Learn how to manipulate, clean, and visualize data using tools such as SQL, Pandas, and Matplotlib.
  3. Learn machine learning: Machine learning is a core skill for data scientists, so you'll need to learn the fundamentals of machine learning algorithms, such as linear regression, decision trees, and neural networks.
  4. Practice, practice, practice: Work on projects to gain hands-on experience and build your portfolio. Participate in Kaggle competitions or work on personal projects to showcase your skills.
  5. Specialize: Choose a domain area to specialize in, such as healthcare, finance, or social media, and gain expertise in that area.
  6. Continue learning: Keep up with the latest trends and technologies in data science, attend conferences, and take online courses to keep your skills up to date.
  7. Build your network: Connect with other data scientists through online forums, social media, and networking events. Join data science communities to learn from others and find new opportunities.
Becoming a data scientist is a lifelong learning journey, but by following this roadmap, you can build the foundation for a successful career in this exciting field.
  • asked a question related to MySQL
Question
2 answers
Hi hi hello:)
I am looking for research topic for my final project which should be a combination of social sciences and data science (Maybe some natural language processing?). I’m studying big data management, I know python, mySQL, web scraping. My professor is interested in OSINT tools/Kali Linux. I think that Maltego and Maltego-like tools are cool but I don’t know what to analyze exactly:( Do you have any ideas? I’m also very interested in archaeological databases, especially ancient Egypt..
Thank you for your ideas
Relevant answer
Answer
Classifying malware using XML logs might be an interesting project that combines some of your skills and interests. I did something like this in a class project a few years back, and it was a good opportunity to show off some natural language processing as well as play around with supervised learning algorithms and even semi-supervised learning.
Here is the Kaggle competition for the class I took:
However, I am sure that malware has advanced considerably since then, so you can probably look into more up-to-date forms of malware if you find this topic of interest.
  • asked a question related to MySQL
Question
15 answers
Greetings all,
What do you think is the best programming language for cancer informatics for a beginner?
I have found some recommendations for Python, R, MySql, PHP, and Perl, yet as a novice in informatics I couldn't reach a clear conclusion.
Relevant answer
Answer
R Programming and Python.
  • asked a question related to MySQL
Question
2 answers
Hello!, I'm trying to use the ModelX for my final year thesis research and all requirements for this script are satisfied and I'm using mysql server but when i run the command i get following error.
Your dnaX time has expired on 2021-Jan-31
Academic licenses: just download it again
Commercial licenses: contact us
while i have the latest version of modelx and everything recommended by the Developers. Anyone have some solution to this please
Relevant answer
Answer
Hi.,
Kindly Check this link:
Best Wishes..
  • asked a question related to MySQL
Question
3 answers
I use Moodle. We have 3 faculties - Business, English and IT. How can I easily get a Faculty module activity report for the faculty heads by just using an already existing Moodle plugin or through mySQL?
The outcome of this approach would be to generate three reports. One for each faculty enlisting all the activity reports for all the modules within the faculty.
Looking forward to expert opinions.
Thanks and Regards,
Roshan Kolar
Relevant answer
Answer
If you have completion tracking enabled and set up for all of the relevant activities, the Completion Progress or Completion Progress blocks will provide a "report" of all participants (including faculty) of whether or not they have completed certain activities according to the completion criteria. Or, you can simply look at their logs as the Administrator and print out the entire page of their activity.
It depends what kind of activity you are wanting to know. The logs will provide global activity (some of which will be irrelevant) whereas Completion Progress assumes that the courses/activities are set up to record (and thus be able to display) this specific course activity.
With either of these blocks, faculty can see all of the activity at a glance without any special report or MySQL queries needed.
  • asked a question related to MySQL
Question
3 answers
How to implement online practical labs for phpmyadmin, mysql and gui related evaluation
Relevant answer
Answer
Dear, you can search different case studies and problem and implement in phpmyadmin with sql and you must search out other problems.
live practicals labs you can access live php script with sql easily live google
  • asked a question related to MySQL
Question
2 answers
Hi everyone,
I would like to compile a lot of data into a database for open access.
The data will be mostly csv files but also some videos and images.
I don't really know where to start: I have heard MySQL is a good platform which is compatible with R (which is my most comfortable coding platform). So that's the main option I'm looking into right now.
Has anyone made such a database ? Could I look at it to indentify important components ? What programs did you use ?
Thanks a lot!
Relevant answer
Answer
Hi Félicie Dhellemmes! Would something like the Open Science Framework work for what you want? It is super easy to use and creates a DOI if you need one. https://osf.io/
  • asked a question related to MySQL
Question
3 answers
I need to connect my Android application Sqlite database with PHPMyAdmin mysql database to change the application data dynamically.
I need the simplest way to do this this thing. Currently my website is in Joomla (PHP) with database in PHPMyAdmin. I need to connect my application with that.
  • asked a question related to MySQL
Question
7 answers
I got these errors when I install moodle to my computer using WAMP server.
(https://download.moodle.org/download.php/stable38/moodle-latest-38.tgz). But I got following issues. I tried to solve them as the added videos in youtube. But I failed. Can anyone tell me what to do?
Thank you.
Relevant answer
Answer
Hello
Better you uninstall and again install the WAMP server
  • asked a question related to MySQL
Question
5 answers
I am new with Anylogic.
I try to do as the instruction in Anylogic Help as below:
1. Download the required driver (zip archive) from: http://dev.mysql.com/downloads/connector/j/5.1.html
2. Copy all driver files to the model's folder.
3. Open the model in AnyLogic, select it in the Projects view and import driver JAR file on Dependencies tab.
4. Go to the advanced properties of Main and type the following line in Import section: import com.mysql.jdbc.Driver; 
5. Select database and type com.mysql.jdbc.Driver in JDBC driver property.
6. Connection URL should look like the following: jdbc:mysql://host:port host - is the ip address of the database, e.g. 18.40.10.8 port - the default value is 3306
7. Specify login and password for the database.
but from step 5, I can not type com.mysql.jdbc.Driver in JDBC driver property like the instruction. (I use version Anylogic personal learning edition )
Please help me, many thanks in advance !
Relevant answer
  • asked a question related to MySQL
Question
6 answers
I am working on uploading images through forms.
Relevant answer
Answer
A general practice is to store images in directories on the file system and store references to the images in the database. Or , you may store images on a content delivery network or numerous hosts across some great expanse of physical territory, and store references to access those resources in the database.
  • asked a question related to MySQL
Question
4 answers
Two algorithms developed on MySQL to measure the time when a person entered or exited a predefined location using GPS and geofence data.
Results generated by each algorithm is compared to observation data where each log is defined as True Positive (TP), False Negative (FN) and False Positive (FP) to measure reliability of system. For example:
Algorithm | Date | Device name | Location |Reliability
Algorithm 1 | 24/11/2018 | K8HHF | Westminster abbey | FN
Algorithm 2 | 24/11/2018 | K8SLLK | Hyde Park | TP
What is a suitable data analysis tests/techniques to be conducted that compares two the algorithms?
Relevant answer
Answer
F1 score, Overall Accuracy or Producer Accuracy are common metrics to compare accuracy of algorithms
  • asked a question related to MySQL
Question
2 answers
There are methods for cleaning or preprocessing text in python by using sample string . Is there any method to apply preprocessing(cleaning) of text stored in database of tweets . Cleaning of text is necessary for sentiment analysis of tweets stored in database . 
Relevant answer
Answer
Hello
you can check following link, might help.
  • asked a question related to MySQL
Question
12 answers
I have got some data (humidity and temperature) in real time with IOT and saved them on a database. Now I want to create a web page to monitor real time weather data in control charts. How do I plot real time control charts on a web page using MySQL data and PHP?
Relevant answer
  • asked a question related to MySQL
Question
3 answers
I have got some data (humidity and temperature) in real time with IOT and saved them on a database. Now I want to create a web page to monitor real time weather data in control charts. How do I plot real time control charts on a web page using MySQL data and PHP?
Relevant answer
Answer
You can use D3 (https://d3js.org/). It is a javascript library for graphs. However, for real-time applications, I believe that you need use AJAX.
  • asked a question related to MySQL
Question
5 answers
Dear researchers,
I've been working with a MATLAB code to run my simulation. The MATLAB code makes link with ABAQUS to run the FEM simulation and MYSQL to manage the databases for input and output files.
The present code I am working uses MYSQL to generate some tables, let's call it as input files and some other tables to save data throughout the simulation at each step.
I am wondering is there anyway to omit MYSQL, I mean is there any way to generate interactive tables in MATLAB? By interactive I mean that the table can be updated at each simulation step and the new data put in a new row in the table? So far I worked with the Table functions and I can generate the tables but the problem is that I do not know how to make it interactive or updatable!
Any idea?
Thanks a lot!
Farhad
Relevant answer
Answer
you could update a table in MATLAB using vectorization.
  • asked a question related to MySQL
Question
1 answer
I am tasked with responsibility to construct a Central Authentication System on web portals with existing legacy systems that have MySQL as their back-ends. How do i achieve this by constructing or designing a Web SSO where all staff/students in my University login via a single platform with Access Management maintained across this web portals with different MySQL databases. Thank you
Relevant answer
Answer
  • asked a question related to MySQL
Question
4 answers
PreparedStatement (Java+DB)
execute("select * from USERS where login = '" + this.login + "'"); this.login = "test'; drop table USERS; --"; Will this SQL-injection work with Oracle DB?
Relevant answer
Answer
If you directly bind the statements with front end, it will work.
You can avoid the SQL Injection by implementing Procedures.
  • asked a question related to MySQL
Question
5 answers
Before science, I was a software engineer. But back in 2002-2006 I was building Java 2EE servlet driven webpages on an Apache Tomcat Webserver, communicating with a Microsoft SQL Server Manager database server. 
I think, that makes me a bit of a dinosaur. 
Today, I need to build a database with an online (website) driven front end. I know MySQL, but I don't want to go down the old Java 2EE route. So what software techniques do I need for:
1) The web front end (I've heard of VFront, which communicates with MySQL via PHP and Javascript)?
2) To run a website (an web/application server like Apache Tomcat)?
3) To run a database (can this just sit on the web/application server)?
It's been a very long while, so as simple an explanation as possible would be appreciated. 
Thanks. 
Relevant answer
Answer
It depends on what you want to achieve, and what the purpose of the database is. There are loads of options vfront being one of them, php maker being another. It all depends on what you want to do.
  • asked a question related to MySQL
Question
2 answers
I am on Linux platform with MySQL 5.5. I am trying to monitor all traffic related to MySQL between Master and Slave. 
So, what is the best way to go about finding all ports being used by MySQL Master and Slave for data replication? Pointers will be very welcome.
Relevant answer
Answer
Thanks a lot  @Alaa
  • asked a question related to MySQL
Question
6 answers
We download and process observed data (some 20 variables), with various formats, from web, ftp, webservices, ..  We load it into MySql and we generate compiled csv files.
So far everything works with python scripts sort of manually, and we want some workflow to orchestrate and visualize the advances, and produce weekly or daily updates to our compiled results, 
I see in the web there are dozen tools available, but I would appreciate to get some experiences on scientific or generic workflows, with (web?) visualization, and hopefully easy to configure and monitor and visualize .. Maybe its too much to ask :)
Relevant answer
Answer
I am now thinking about jqplot for visualization, see examples at http://www.jqplot.com/examples/ (I like the ability of zooming). As far as launching in parallel is concerned, "make --jobs=N" is helpful because it automatically ensures that you do not lock the computer by running too many tasks at the same time.
  • asked a question related to MySQL
Question
5 answers
When I print the database script file from the xampp it gives me the relationship between the table in a machine language? But I would like want to see the manually primary key and foreign key constraint.
Relevant answer
Answer
In phpMyAdmin there is visual tool called "Designer" - you can see all the tables inside the database and relations between the tables - primary and foreign keys
  • asked a question related to MySQL
Question
16 answers
I opened the entire file through an editor. I am unable to copy and paste the whole content to execute the sql file. What is correct method to execute such a large sql file?
Relevant answer
Answer
Pardon, answered in wrong question :)
  • asked a question related to MySQL
Question
11 answers
Hello,
Can anyone tell me where I can get sample mysql / oracle logs?
Regards,
Sukhada
Relevant answer
Answer
I didn't get your question Dinesh, could you please elaborate more?
  • asked a question related to MySQL
Question
4 answers
- we build webgis apps using GoogleMap API, kml files using PHP, Java Script and MySQL.
- we try to display points (Lat, Lon and Value), the total points are about 2.5 millions.
- we use pull down menu, to query a certain data and display it to GoogleMaps App. It runs very slow.
Relevant answer
Answer
What about hosting your data through ArcGIS Online? https://www.arcgis.com/features/
  • asked a question related to MySQL
Question
4 answers
We are doing a attendance system project using Raspberry Pi and NFC - NXP module 
we are facing some problem to upload MySQL file into a Raspberry Pi 
can anyone tell us how to upload this file into Raspberry
Relevant answer
Answer
What type of error are you getting?
  • asked a question related to MySQL
Question
9 answers
I have large data tables in MySQL and is connected to R. I am using sqldf package in R to read tables from SQL and combining required tables to obtain the final table to carry out further analyses. But this is not very efficient as it occupies memory in R as well as it takes long time to extract big tables.
Is there a package or something in R that will help me work by directly referencing to tables in MySQL without having to read them first in R?
Thanks!
Relevant answer
Answer
I use SQL commands (in MySQL, phpMyAdmin - part of XAMPP environment) for most of the problems and export CSV files to be processed by R, if is needed (diagrams etc.). But I work with SQL from 15 years. I TRUST in MySQL commands, than in R packages, because I use it more, and I can control faster. I use also R to decompose CSV files to upload into MySQL
  • asked a question related to MySQL
Question
3 answers
hi..
i am getting error while connecting aneka with mysql...
after inserting connection string the test operation is working fine but at the and after completing installation ( after pressing FINISH).. it gives error..    
Relevant answer
Answer
The error is due to permissions during installation
  • asked a question related to MySQL
Question
7 answers
Hi Everyone.
I need to get data from underwater wireless sensors and save these data in a database of MySQL, MSSQL, or Oracle, but I don't know how I can do that and if there is a complete dataset sample? Any help
Relevant answer
Answer
I see here two possible directions of discussion: the hardware aspects of designing the network to be able to send data wireless underwater - which poses significant challenges by itself - and the distinct problem of writing the necessary pieces of software in order to collect the data. Please give more details in regard to your specific problem and I'll try to help you.
  • asked a question related to MySQL
Question
3 answers
to develop fingerprint web application using PHP and MySql
Relevant answer
Answer
Not sure whether this is helpful or not.
FlexCode SDK
  • asked a question related to MySQL
Question
4 answers
I need install a Snort platform, but the new version does not support connecting MySQL. I have used cygwin to compile Barnyard2, but it failed. Are there some parameters that I have to modify? Can anyone help me?
Relevant answer
Answer
The attached file may be helpful.
  • asked a question related to MySQL
Question
2 answers
Hi guys. I would like to carry out combinations and permutations using MySQL. This should be done without replacement. For instance having the column Col1 below, Col 1 1 2 3 4 5 To obtain Col 1 col 2 1 2 1 3 1 4 1 5 2 1 2 3 2 4 2 5 3 1 3 2 3 4 3 5 and so on. This should enable me to obtain 5_(P_2 ) rows= 20 rows. Bring on the ideas please
Relevant answer
Answer
How about
SELECT col1.number, col2.number FROM col1 LEFT JOIN col1 col2 ON col1.number<>col2.number
  • asked a question related to MySQL
Question
1 answer
I'm doing a project with java servlets and velocity template application. I started to write codes to some functionality but I want to know what is the best software to use to write codes? How can I write a code to communicate with Mysql and java servlet application?
Relevant answer
Answer
Netbeans and Intellij for me are the best.
To communicate with mysql you can use Servlet on the tomcat.
To communicate with java servlet you can use JSON, or have a look at some frameworks like primefaces.
  • asked a question related to MySQL
Question
1 answer
In the Mac OS X Yosemite10.10.1, weka connect to mysql, I like some tell me in details. Thank you very much!
Relevant answer
Answer
This is probably too late but if you look here:
you might find the information you are looking for.
  • asked a question related to MySQL
Question
12 answers
We need to ensure the performance of Web server and Database Server. 
1. How can be  do this:
2. Is there any benchmark for good performance.
Relevant answer
Answer
Vipul,
Please share your experiences with the several tools that have been suggested.   We would like to know your outcomes!
  • asked a question related to MySQL
Question
5 answers
We use Geneious 8 and want one computer in our lab to be the place where all plasmids are stored. Other people should be able to connect to this database as clients and work with their Geneious version.
I understand you have to set up a database with an external program like MySQL, but I have no clue how to do that.
Maybe somebody has a tutorial?
Relevant answer
Answer
Dear Mr Brian, reading the chapter #16 in the Geneious Manual you can find how to setup shared databases.
Basically you must install a database manager (personally I prefer MySQL), this is a fairly simple task. Then the software will allow you to indicate that you want to use that database and create the conditions for further operation. In theory it is a fairly simple process, in practice should be too.
Reading chapter #16 and the basics from MySQL manual, Mr Alex has managed to solve this problem.
Best regards.
  • asked a question related to MySQL
Question
6 answers
PHP programming skills, Ajax-Javascript skills, Database expertise
Relevant answer
Answer
I am sorry to ask but please explore you question bit more. What do you mean by open layer here ?
  • asked a question related to MySQL
Question
11 answers
I need to process large database within a time frame of three weeks. First I tried by retrieving the entire data collected within three weeks with MySQL statement (million of rows) but the process got killed as the %MEM reached 100%. Then I modified the python code to retrieve the data within a sequence of time frames and processing with one row at a time instead of dealing with entire data. Though it improves the memory utilization a bit but made the scripts very slow. How can I improve the performance of the script? Is there any tip for that. I tried with pypy but it conflicted with MySQLdb module
Relevant answer
Answer
Dear Mr Partha, I suggest to take a look at some professional ETL tool, maybe Pentaho Data Integration. You can perform parallel transformations or jobs.
Best regards.
  • asked a question related to MySQL
Question
5 answers
I'm try to create and application with CodeIngiter, I use a MySQL DB for it, but I need have access to others Databases make it with SQL Server, recompile information from them and integrate to my MySQL DB on my application.
Relevant answer
Answer
Have you tried anything in particular?
For starters you are going to have to use the SQL server driver, and install it if you don't have it yet. More info on this StackOverflow question(see bellow).
After that you are going to have to switch between the two database drivers. You can find more info for that in the CI documentation(2nd link)
  • asked a question related to MySQL
Question
7 answers
I have column where the values in that column will have some name in capital alphabet the length is 10 char but if the name is small 
The values in this field will be padded with leading spaces (char 'b') when < 10 chars.
E.g. name  ABC will be
"bbbbbbbABC"
 When I print, I should print only ABC.
Relevant answer
Answer
If you got a table 'MyTable' with a column 'MyName' then the SQL statement would be:
SELECT REPLACE(MyName,'b','') FROM MyTable
  • asked a question related to MySQL
Question
6 answers
Order_number         T_Calc_Time
2013040100086600 09:16:34
2013040100146880 09:19:13
2013040100406920 09:35:30
2013040100893120 10:13:09
2013040100086600 10:15:14
2013040101906200 12:07:59
2013040100146880 14:48:22
2013040103401460 15:06:34
2013040103407980 15:07:16
2013040103401460 15:09:11
2013040103407980 15:24:22
select Order_number, count(Order_number),T_Calc_Time,TIME_TO_SEC(TIMEDIFF(T_Calc_Time,T_Calc_Time)) from cash_order01 group by Order_number into outfile '/tmp/ordernumber1.csv';
I have to find out that I the order number come again then i have to calculate the difference between those times.
for example the order 2013040100086600 come at 09:16:34 and leave at 10:15:14 i have find the difference and print  for each order. If the order comes only once then we have say it is gone to next day.
can any one help me?
Relevant answer
Answer
Try this:
SELECT
  a.order_number,
  Min(a.t_calc_time) start,
  Max(a.t_calc_time) end,
  Timediff(MAX(a.t_calc_time), Min(a.t_calc_time)) time_difference
FROM
  ankit AS a
GROUP BY
  a.order_number;
It should work better and faster.
Try to limit the query for, say, a 100 records with LIMIT 0, 100 (at the end of the query) to see if the results are good?.
  • asked a question related to MySQL
Question
6 answers
I have very large table around 15 GB.
schema is create table cash_order(Record_Indicator char(2) not null, Segment char(4) not null,Order_number bigint unsigned not null, Transaction_Times bigint not null, Buy_Sell_Indicator char(1) not null, Activity_Type Int(1) not null,Symbol varchar(10) not null, Series char(2) not null, Volume_Disclosed int unsigned not null,Volume_Original int unsigned, Limit_Price int unsigned, Trigger_Price int unsigned, Market_Order_Flag char(1) not null,Stop_Loss_Flag char(1) not null, IO_Flag char(1), Algo_Indicator int(1), primary key(Order_number,Buy_Sell_Indicator,Symbol,Transaction_Times))max_rows=5000000000;
from that table I have to show the like
first column (distinct Symbol), second column (Number of orders which belong to Symbol), third column( number of orders which belong to Symbol and also Algo_Indicator=0), fourth column(number order which belong to Symbol and also Algo_Indicator=0, Market_Order_Flag='Y') like wise it goes on.
for example it should look like this
bharthi,1020,890,400,......
bharathi is symbol name, bharathi has 1020 number of orders. out of 1020 orders the 890 orders are algo_indicator=0, and out of 890 orders the 400 orders are market_order_flag='y'.
select Symbol,count(Order_number)from cash_order01 where Algo_Indicator=0 group by Symbol order by count(Order_number) desc into outfile '/tmp/exe4.csv';
I have used this command but i generated the number of order_number which satisfy the condition that Algo_Indicator=0 not the total order number;
Can any one help me.
Relevant answer
Answer
You can compute the sums separately e.g. via views and then assemble them in the result:
create view col1(Symbol,sum1)
as select Symbol, count(distinct Order_number)
from cash_order
group by Symbol;
create view col2(Symbol,sum2)
as select Symbol, count(distinct Order_number)
from cash_order
where Algo_Indicator=0
group by Symbol;
create view col3(Symbol,sum3)
as select Symbol, count(distinct Order_number)
from cash_order
where Algo_Indicator=0 and Market_Order_Flag='Y'
group by Symbol;
select Symbol,sum1,sum2,sum3
from (col1 natural join col2) natural join col3
order by sum1 desc into outfile '/tmp/exe4.csv';
Cf. count(distinct Order_number) assumes the one you declared in the schema is really the primary key of the relation.
  • asked a question related to MySQL
Question
5 answers
I have .csv file of size 15 GB. I used load data command in my sql to load the data to mysql table. It is skipping the records after 9868890. I read the maximum number of mysql table records are 5000000000. why I could not able to upload? I tried to increase number of rows by "alter table filename max_rows=200000000" then checked the status. It shows that max_row are that much but I could not able to insert not even one record more. please help me. Please dont ask me to split the file. I have 500 files like this and I have to upload. and My professor will not be happy if I simply break the files and do it.
Relevant answer
Answer
First, try to optimize your table's schema according to comments and suggested changes in this fiddle http://sqlfiddle.com/#!2/9bd7c/1/0 I've made for you.
Could it be that there is more than one record with the SAME combination of order_number, buy_sell_indicator and symbol in your CSV? I guess that the order number should be unique, but you should make sure that this is not the reason for failure.
Also, it says that there are warnings. Could you list some of the warnings in the SQL error log for me to see. Maybe there is some info that could help us find the problem.
  • asked a question related to MySQL
Question
4 answers
Suppose that we have a Table A with only one column A1 which is indexed by B-tree. What is the cost of running query "Select count(*) from A where A1=10"
I think is O(LogN), is that right?
Relevant answer
Answer
The actual complexity depend on DBMS realization. However, I do not think it is O(Log N). This formula is correct for searching for one line in a table. First, the DBMS selects lines from a table, then it counts them. Number of the selected is equal to the number of  occurrences which is 0..N. If there are 0 or 1 occurrences then the complexity is O(Log N). After finding the first occurrence, the algorithm must check if there are more occurrences. In a tree, this operation is performed in a single step. But algorithm must repeat this single step at least as many times as many occurrences. If there are more than 1 ones, it is probably O(M + log N) where M is quantity of occurrences or less than this value but more than O(log N). If M is small (in comparison with N) then the complexity is O(log N).
  • asked a question related to MySQL
Question
4 answers
I have been working on the development of a database regarding RNA classification. Now it is almost done. I have attached the link of the database. I have tested it on Mozilla and Chrome. Any suggestion regarding making it better would be much appreciated. Thank you all.
Relevant answer
Answer
Hi Debasish, great work.
I also working in something similar using mysql, my goal is a protein folding prediction, but Im still in the very beginning and I'm still learning about biochemistry but maybe we can share some info about mysql.
My skype is thiagobenazzimaia
 
  • asked a question related to MySQL
Question
2 answers
I would like to plot a trip/track (stored in the postGIS database as long. and lat.) on the OSM map, offline, based on the OSM shape files which are locally stored. Could anyone give me directions how to do so?
Relevant answer
Answer
QGIS is a nice platform for various formats, as it uses GDAL and other tools to make data usable. OSM can be accessed in QGIS directly as a raster, via a supplied plugin, and you can use all sorts of vectors on top of it.
I like QGIS because it manages various exotic projections seamlessly, and I need it for that particular reason. It also supports other open maps, and WMS online sources.
If you are new to QGIS, go for a 32 bit version, and install Python first.
  • asked a question related to MySQL
Question
9 answers
I'm looking for an educational tool for developing dynamic web sites using:
PHP
MYSQL
Relevant answer
Answer
Netbeans and Eclipse are open source. PhpStorm from jetbrains is a great idea but is paid.
  • asked a question related to MySQL
Question
7 answers
The database needs to handle large scale data (12 Mio entries at a time).
Relevant answer
MySQL is controlled by it self, as you know its a DBMS.
PHP is just used to retrieve data from MySQL database. Therefore, I think you should look for the MySQL DBMS optimization.
What type of data it is? What do you mean by processing 12M data at a time? If your database has 12M entries and you want to update and retrieve data, then you need to improve your searching algorithm in your PHP script. However, this will improve the performance of the program, not the MySQL database.
These are my 2 cents.
Good luck,
Sarves
  • asked a question related to MySQL
Question
12 answers
The best would be if it's accessible from python and works as a system service (remote access).
From my experience, MySQL is not capable of doing so, so I'm looking for some NoSQL solutions.
Relevant answer
Answer
Thanks Johannes.
I would like to add (it just came up to my mind) that another possible option (since there is the necessity to deal with relationships) might be to resort to a graph database: for example HyperGraphDB (http://www.hypergraphdb.org/index)