I am new to Sybase Adaptive Server Enterprise/15.7 (ASE) and need some guidance to find the different values in serial format column. It has values with below format which contains 12 digits hexadecimal characters with numbers/alphabets.
Ex:
00:71:48:D1:R6:Z7 --Valid record
3E67E5E334Q8 --invalid as : is not used across 2 digits
How can query be written to identify SERIAL_FORMAT with:-
Total Valid
Invalid
Missing
Bad format
Repeated values
Any help is appreciated.
In addition to what migurus has already said, note that saying that valid records contain 12 hexadecimal digits and then saying that a string containing 17 characters of which 7 are not hexadecimal digits (five colons, an uppercase R, and an uppercase Z) is valid AND saying that a string that doesn't contain colons is invalid brings everything else you've said into question. It is very hard to help you write code to help you test conflicting requirements.
Hello Guys,
I'm new to Shell scripting, and i need someone to help me with this issue:
I'm trying to do a dynamic update query on Sysbase database table using shell script.
Lets say, the Update query is "update Table set id=X" , where X is dynamic value for the loop index.
If the loop is... (10 Replies)
Hello Guys,
Well, using shell script, I'm doing loop on DB query as below:
isql -Usa -Ptest -I /opt/sybase/interfaces << EOF
use testdb
go
declare @i int
select @i = 1
while(@i <= 5)
begin
Insert into TEST values (@i,"Test","TestDesc")
select @i = @i + 1
end
go
EOF
The Issue... (2 Replies)
Hello,
I have three tables.
I need an SQL query (preferably Sybase) that will return all of the stringID values of table B where the following conditions exist:
(1) B.intID = A.intID
(2) B.intID != C.intID
or (B.intID = C.intID and
(C.v1 = 0 or C.v2... (2 Replies)
i'm looking for an installer of Sybase ASE 11.9.2.6 for HP-UX. tried buying from the local distributor but he can only give me the latest version. can anyone point me to where i could possibly get it? (0 Replies)
Team
I am using DBartisan tool for sybase database.
I have a table that has below fields Employee_ID,EMP_Name,First_Nm,Last_Nm,Emp_Designation,Employee's_Manager
is it possible to retrieve hierarchical data based on below fields
Emp_Designation will have Soft Engg,SSE,Team Lead,... (6 Replies)
HI Team
I am using Sybase ASE15.7 version.
Below is the sample column values .
http://abc.lifeline.airs.com/support/
https://xyzbre.lifeline.airs.com/video/
Would like to know how to
Trim http:// and https:// from above list of example
Remove characters after first /
Include only the... (3 Replies)
Hi Team -
I am using Sybase ASE 15.7 version. Below query is throwing an error
stating Error : incorrect syntax near the keyword 'OVER'
SELECT
EMPLOYEE_ID ,
EMPLOYEE ,
Department,
CAST( Salary as DECIMAL( 10, 2 ) ) AS Salary
CAST(AVG( Salary) OVER ( PARTITION... (3 Replies)
Dear Team
I am using Sybase Adaptive Server Enterprise/15.7 (ASE). Trying my luck on SOUNDEX function to get unique records
Though the command works for characters and provides unique code for similar outputs.
But when i try with Starting numbers ( Followed with Street address ) , soundex... (1 Reply)
Dear Team
Please provide suggestion on below query which is used in Sybase Adaptive Server Enterprise/15.7 (ASE).
Query takes more time > 30 Mins to 1 Hr
All required indexes are built
Can we have any efficient approach to get the data retrieval faster for below query.Any help... (0 Replies)
Discussion started by: Perlbaby
0 Replies
LEARN ABOUT CENTOS
sd_id128_from_string
SD_ID128_TO_STRING(3) sd_id128_to_string SD_ID128_TO_STRING(3)NAME
sd_id128_to_string, sd_id128_from_string - Format or parse 128-bit IDs as strings
SYNOPSIS
#include <systemd/sd-id128.h>
char* sd_id128_to_string(sd_id128_t id, char s[33]);
int sd_id128_from_string(const char* s, sd_id128_t* ret);
DESCRIPTION
sd_id128_to_string() formats a 128-bit ID as a character string. It expects the ID and a string array capable of storing 33 characters. The
ID will be formatted as 32 lowercase hexadecimal digits and be terminated by a NUL byte.
sd_id128_from_string() implements the reverse operation: it takes a 33 character string with 32 hexadecimal digits (either lowercase or
uppercase, terminated by NUL) and parses them back into a 128-bit ID returned in ret. Alternatively, this call can also parse a
37-character string with a 128-bit ID formatted as RFC UUID.
For more information about the "sd_id128_t" type see sd-id128(3). Note that these calls operate the same way on all architectures, i.e. the
results do not depend on endianness.
When formatting a 128-bit ID into a string, it is often easier to use a format string for printf(3). This is easily done using the
SD_ID128_FORMAT_STR and SD_ID128_FORMAT_VAL() macros. For more information see sd-id128(3).
RETURN VALUE
sd_id128_to_string() always succeeds and returns a pointer to the string array passed in. sd_id128_from_string returns 0 on success, in
which case ret is filled in, or a negative errno-style error code.
NOTES
The sd_id128_to_string() and sd_id128_from_string() interfaces are available as a shared library, which can be compiled and linked to with
the "libsystemd-id128" pkg-config(1) file.
SEE ALSO systemd(1), sd-id128(3), printf(3)systemd 208SD_ID128_TO_STRING(3)