由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - generate unique integer ID from columns in SQL table
相关主题
CS: print all combination from an arraycombinations 有没有 iterative的方法阿 ?
keep group of values of SQL procedure in one table (转载)问个递归的问题
a problem from leetcode: high efficiency algorithm for combinations problemSQL combine two columns from two different tables no shared columns
做题一道面试题请教
这题也可以DP 解吧?Facebook Phone Screen
请教leetcode Combination Sum II的code,谢谢。下午的google就只code完一题,没来得及做第二题
Combination Sum II哪里做错了这里牛人多,给大家来个算法的问题
关于结果除掉重复的问题请教关于随机的题目
相关话题的讨论汇总
话题: value1话题: value话题: value4话题: id1话题: integer
进入JobHunting版参与讨论
1 (共1页)
l******9
发帖数: 579
1
I need to generate a new column in a table in a sql database.
the given table is:
id1 value1 value2 value3 value4
9465 387 801 1990 20
All columns are integer. All columns are integer. value1 and value2 are
always 3 digits, value3 are year value, value4 is not more than 3 digits.
I need to generate a value by combining value1 to value4, suppose that it is
called "value_combine". The "value_combine" should be unique. For example,
given the different combinations of value1 to value4, the "value_combine"
should also be different.
And then, the "value_combine" is combined with id1 such that the new value (
we call it final_id) should be unique.
For example, given different combinations of id1 and value_combine, the
final_id should also be different.
The final_id can be used to identify each unique combination of id1 and
value1-4.
The final_id MUST be integer and all values should have the same length of
digits, such as 6, 7 or 8 digits.
Any help would be appreciated.
1 (共1页)
进入JobHunting版参与讨论
相关主题
关于随机的题目这题也可以DP 解吧?
请问二叉搜索树如何找到两个点的最近祖先?请教leetcode Combination Sum II的code,谢谢。
请教几个问题Combination Sum II哪里做错了
问个算法题2关于结果除掉重复的问题请教
CS: print all combination from an arraycombinations 有没有 iterative的方法阿 ?
keep group of values of SQL procedure in one table (转载)问个递归的问题
a problem from leetcode: high efficiency algorithm for combinations problemSQL combine two columns from two different tables no shared columns
做题一道面试题请教
相关话题的讨论汇总
话题: value1话题: value话题: value4话题: id1话题: integer