314 questions
-1 votes
2 answers
712 views
SQL: Error: near "(": syntax error | primary key problem
The professor asked us to create two tables and alter them. create table student ( name varchar(25) not null, std_num int(12), std_num(primary) ); When I click "Run SQL", it ...
0 votes
1 answer
340 views
Solution on SQLAlchemy 3 on creating tables with flask-shell or Python shell [duplicate]
So recently i started a project on Python with Flask as a newbie and wanted to create a "Register and Login Page" everything was going well. But when I arrived to create a table in database ...
-2 votes
1 answer
135 views
AUTOINCREMENT vs No AUTOINCREMENT in SQLite
I put and did not put AUTOINCREMENT for id in person table as shown below: CREATE TABLE person ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT # ↑↑↑↑↑↑↑↑↑↑↑↑↑ ); CREATE TABLE person ...
0 votes
1 answer
106 views
Create database tables from html tables
I need help creating database tables from html tables. Right now I'm just manually doing it. I have a html doc that has all the data but I don't know what the best way to extract the data. <html ...
-1 votes
2 answers
57 views
Indexes needed for user advanced filter?
ASP.NET MS SQL table: tblPets ID (123456789) AnimalType (Dog, Cat, Goldfish...) AnimalName (Rudolf, Ben, Harold...) CountryCode (US, AU..) StateCode (CA, NY...) CityCode (AK, LA...) IsMammal (True, ...
0 votes
1 answer
300 views
Error Call to a member function getFieldNames() on null in codeigniter 4
I'm trying to get the columns name from "users" table in my database using detFieldNames function in codeigniter 4 but something went wrong. Here is the error: Error Model class: class ...
0 votes
1 answer
1k views
How to put the constrain of duplicated entries in DynamoDB?
I am using DynamoDB under Python environment and I would like to use the following DynamoDB as an example: id time value 1 1 1 2 2 3 1 2 4 1 3 4 1 4 6 I would like to have a table that has unique id ...
0 votes
1 answer
403 views
Table design for monthly (time series) counts/stats in DynamoDB
I would like to store upwards of 100 time series in DynamoDB for each user. The data is aggregate monthly counts and is used for comparing monthly usage to permitted usage under varying subscription ...
0 votes
1 answer
162 views
How to create database table based on the type of the users
I have two types of users. For example: Male 2 Female Now I have created a table of 'users' that holds all the common information and 'males' and 'females' will hold specific information related to ...
4 votes
1 answer
1k views
How to display `Null` (SQLite)
On SQLite, I displayed the table "user" as shown below but "Null" is not displayed so I cannot differentiate between "Null" and Blank(Empty String): sqlite> .header on ...
1 vote
4 answers
209 views
How do I limit my PL/SQL query to search only relevant tables?
I'm trying to write a PL/SQL script that searches the entire database for a string and report the tables and columns it finds it in. It looks like this: DECLARE ncount NUMBER; vwhere VARCHAR2(1000)...
0 votes
1 answer
72 views
I want to add multiple job roles for different durations in designation history table . how can i get it in ABAP?
I have 2 tables i.e employee details and employee designation history. Employee details table - EMPID , Name , Age ,Gender. (EmpID - Primary Key) Designation history table - EMPID , Startdate , ...
0 votes
1 answer
5k views
How to Modify the data inside database table for existing record in ABAP?
I have created database table ZSP_EMP_DET inside which I am performing CRUD operations by providing values through screen . So I have tried to find if record is already present in table or not and if ...
2 votes
3 answers
3k views
Display empty value when there is no data on the table
I have table and query to select data from row to column like this: id | type | data ----------------------- 1 | Name | John 1 | Gender | Male 1 | Code | 1782 2 | Name |...
0 votes
1 answer
2k views
Query to select data from row into column in SQL Server [duplicate]
I have example table like this : type value ----------------------- Name | John Gender | Male Address | New City Phone | 62813 etc... | etc... I want to make ...